
public class OLuceneIndexNotUnique extends OIndexAbstract implements OLuceneIndex
OIndexAbstract.IndexConfiguration, OIndexAbstract.IndexTxSnapshotapiVersion, binaryFormatVersion, clustersToIndex, CONFIG_MAP_RID, configuration, indexId, metadata, storage, type, valueContainerAlgorithmALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, METADATA, VALUE_CONTAINER_ALGORITHMMERGE_KEYS| Constructor and Description |
|---|
OLuceneIndexNotUnique(String name,
String typeId,
String algorithm,
int version,
OAbstractPaginatedStorage storage,
String valueContainerAlgorithm,
ODocument metadata,
int binaryFormatVersion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeUsedInEqualityOperators()
Indicates whether given index can be used to calculate result of
OQueryOperatorEquality operators. |
protected void |
clearSnapshot(OIndexAbstract.IndexTxSnapshot indexTxSnapshot) |
protected void |
commitSnapshot(Map<Object,Object> snapshot) |
OLuceneIndexNotUnique |
create(String name,
OIndexDefinition indexDefinition,
String clusterIndexName,
Set<String> clustersToIndex,
boolean rebuild,
OProgressListener progressListener) |
protected Object |
decodeKey(Object key) |
Stream<ORawPair<Object,ORID>> |
descStream() |
protected OBinarySerializer |
determineValueSerializer() |
void |
doDelete() |
void |
doPut(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
protected Object |
encodeKey(Object key) |
Collection<OIdentifiable> |
get(Object key)
Deprecated.
|
Object |
getCollatingValue(Object key) |
Stream<ORID> |
getRids(Object key) |
Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> |
interpretTxKeyChanges(OTransactionIndexChangesPerKey changes)
Interprets transaction index changes for a certain key.
|
boolean |
isNativeTxSupported() |
protected void |
onIndexEngineChange(int indexId) |
OLuceneIndexNotUnique |
put(Object key,
OIdentifiable value)
Inserts a new entry in the index.
|
protected void |
putInSnapshot(Object key,
OIdentifiable value,
Map<Object,Object> snapshot) |
long |
rebuild(OProgressListener iProgressListener)
Populate the index with all the existent records.
|
boolean |
remove(Object key)
Removes an entry by its key.
|
boolean |
remove(Object key,
OIdentifiable rid)
Removes an entry by its key and value.
|
OIndexAbstract |
removeCluster(String iClusterName)
Remove given cluster from the list of clusters that should be automatically indexed.
|
protected void |
removeFromSnapshot(Object key,
OIdentifiable value,
Map<Object,Object> snapshot) |
org.apache.lucene.search.IndexSearcher |
searcher() |
long |
size() |
Stream<ORawPair<Object,ORID>> |
stream() |
Stream<ORawPair<Object,ORID>> |
streamEntries(Collection<?> keys,
boolean ascSortOrder)
Returns stream which presents data associated with passed in keys.
|
Stream<ORawPair<Object,ORID>> |
streamEntriesBetween(Object fromKey,
boolean fromInclusive,
Object toKey,
boolean toInclusive,
boolean ascOrder)
Returns stream which presents subset of index data between passed in keys.
|
Stream<ORawPair<Object,ORID>> |
streamEntriesMajor(Object fromKey,
boolean fromInclusive,
boolean ascOrder)
Returns stream which presents subset of data which associated with key which is greater than
passed in key.
|
Stream<ORawPair<Object,ORID>> |
streamEntriesMinor(Object toKey,
boolean toInclusive,
boolean ascOrder)
Returns stream which presents subset of data which associated with key which is less than
passed in key.
|
boolean |
supportsOrderedIterations() |
acquireAtomicExclusiveLock, acquireExclusiveLock, acquireSharedLock, addCluster, addTxOperation, clear, close, commit, compareTo, count, create, cursor, delete, descCursor, doReloadIndexEngine, doRemove, doRemove, equals, flush, getAlgorithm, getClusters, getConfiguration, getDatabase, getDatabaseName, getDefinition, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeySize, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getSize, getType, getVersion, hashCode, hasRangeQuerySupport, isAutomatic, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, keyStream, loadFromConfiguration, loadMetadata, loadMetadataInternal, manualIndexesWarning, postCommit, preCommit, rebuild, releaseExclusiveLock, releaseSharedLock, setType, toString, updateConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitisLabelSecurityDefined, isReadRestrictedBySecurityPolicy, securityFilterOnRead, securityFilterOnReadpublic long rebuild(OProgressListener iProgressListener)
OIndexAbstractrebuild in interface OIndexrebuild in class OIndexAbstractpublic boolean remove(Object key, OIdentifiable rid)
OIndexremove in interface OIndexremove in class OIndexAbstractkey - The entry's key to removepublic boolean remove(Object key)
OIndexremove in interface OIndexremove in class OIndexAbstractkey - The entry's key to removepublic OIndexAbstract removeCluster(String iClusterName)
OIndexInternalremoveCluster in interface OIndexInternalremoveCluster in class OIndexAbstractiClusterName - Cluster to remove.protected OBinarySerializer determineValueSerializer()
determineValueSerializer in class OIndexAbstractpublic Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> interpretTxKeyChanges(OTransactionIndexChangesPerKey changes)
OIndexAbstractORecordDuplicatedException while applying index
changes.interpretTxKeyChanges in interface OIndexInternalinterpretTxKeyChanges in class OIndexAbstractchanges - the changes to interpret.public void doPut(OAbstractPaginatedStorage storage, Object key, ORID rid)
doPut in interface OIndexInternalpublic Object getCollatingValue(Object key)
getCollatingValue in interface OIndexInternalgetCollatingValue in class OIndexAbstractprotected void commitSnapshot(Map<Object,Object> snapshot)
commitSnapshot in class OIndexAbstractpublic void doDelete()
doDelete in class OIndexAbstractprotected void putInSnapshot(Object key, OIdentifiable value, Map<Object,Object> snapshot)
putInSnapshot in class OIndexAbstractprotected void removeFromSnapshot(Object key, OIdentifiable value, Map<Object,Object> snapshot)
removeFromSnapshot in class OIndexAbstractprotected void clearSnapshot(OIndexAbstract.IndexTxSnapshot indexTxSnapshot)
clearSnapshot in class OIndexAbstractprotected void onIndexEngineChange(int indexId)
onIndexEngineChange in class OIndexAbstractpublic OLuceneIndexNotUnique create(String name, OIndexDefinition indexDefinition, String clusterIndexName, Set<String> clustersToIndex, boolean rebuild, OProgressListener progressListener)
@Deprecated public Collection<OIdentifiable> get(Object key)
OIndexpublic Stream<ORID> getRids(Object key)
getRids in interface OIndexInternalpublic OLuceneIndexNotUnique put(Object key, OIdentifiable value)
OIndexpublic long size()
size in interface OIndexInternalpublic Stream<ORawPair<Object,ORID>> streamEntries(Collection<?> keys, boolean ascSortOrder)
OIndexInternalstreamEntries in interface OIndexInternalkeys - Keys data of which should be returned.ascSortOrder - Flag which determines whether data iterated by stream should be in
ascending or descending order.public Stream<ORawPair<Object,ORID>> streamEntriesBetween(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive, boolean ascOrder)
OIndexInternalstreamEntriesBetween in interface OIndexInternalfromKey - Lower border of index data.fromInclusive - Indicates whether lower border should be inclusive or exclusive.toKey - Upper border of index data.toInclusive - Indicates whether upper border should be inclusive or exclusive.ascOrder - Flag which determines whether data iterated by stream should be in ascending or
descending order.public Stream<ORawPair<Object,ORID>> streamEntriesMajor(Object fromKey, boolean fromInclusive, boolean ascOrder)
OIndexInternalstreamEntriesMajor in interface OIndexInternalfromKey - Lower border of index data.fromInclusive - Indicates whether lower border should be inclusive or exclusive.ascOrder - Flag which determines whether data iterated by stream should be in ascending or
descending order.public Stream<ORawPair<Object,ORID>> streamEntriesMinor(Object toKey, boolean toInclusive, boolean ascOrder)
OIndexInternalstreamEntriesMinor in interface OIndexInternaltoKey - Upper border of index data.toInclusive - Indicates Indicates whether upper border should be inclusive or exclusive.ascOrder - Flag which determines whether data iterated by stream should be in ascending or
descending order.public boolean isNativeTxSupported()
isNativeTxSupported in interface OIndexInternalpublic Stream<ORawPair<Object,ORID>> stream()
stream in interface OIndexInternalpublic Stream<ORawPair<Object,ORID>> descStream()
descStream in interface OIndexInternalpublic boolean supportsOrderedIterations()
supportsOrderedIterations in interface OIndexpublic org.apache.lucene.search.IndexSearcher searcher()
searcher in interface OLuceneIndexpublic boolean canBeUsedInEqualityOperators()
OIndexInternalOQueryOperatorEquality operators.canBeUsedInEqualityOperators in interface OIndexInternaltrue if given index can be used to calculate result of OQueryOperatorEquality operators.Copyright © 2009–2025 OrientDB. All rights reserved.