public interface OIndexInternal extends OIndex
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM |
static String |
CONFIG_AUTOMATIC |
static String |
CONFIG_KEYTYPE |
static String |
CONFIG_NAME |
static String |
CONFIG_TYPE |
static String |
INDEX_DEFINITION |
static String |
INDEX_DEFINITION_CLASS |
static String |
INDEX_VERSION |
static String |
METADATA |
static String |
VALUE_CONTAINER_ALGORITHM |
MERGE_KEYS
Modifier and Type | Method and Description |
---|---|
boolean |
acquireAtomicExclusiveLock(Object key)
Acquires exclusive lock in the active atomic operation running on the current thread for this
index.
|
OIndex |
addCluster(String iClusterName)
Add given cluster to the list of clusters that should be automatically indexed.
|
void |
addTxOperation(OIndexAbstract.IndexTxSnapshot snapshots,
OTransactionIndexChanges changes) |
boolean |
canBeUsedInEqualityOperators()
Indicates whether given index can be used to calculate result of
OQueryOperatorEquality operators. |
void |
close() |
void |
commit(OIndexAbstract.IndexTxSnapshot snapshots) |
Stream<ORawPair<Object,ORID>> |
descStream() |
void |
doPut(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
boolean |
doRemove(OAbstractPaginatedStorage storage,
Object key) |
boolean |
doRemove(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
Object |
getCollatingValue(Object key) |
String |
getIndexNameByKey(Object key)
Returns the index name for a key.
|
Stream<ORID> |
getRids(Object key) |
boolean |
hasRangeQuerySupport() |
Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> |
interpretTxKeyChanges(OTransactionIndexChangesPerKey changes) |
static boolean |
isLabelSecurityDefined(ODatabaseDocumentInternal database,
OSecurityInternal security,
String indexClass,
String propertyName) |
boolean |
isNativeTxSupported() |
static boolean |
isReadRestrictedBySecurityPolicy(String indexClass,
ODatabaseDocumentInternal db,
OSecurityInternal security) |
Stream<Object> |
keyStream() |
boolean |
loadFromConfiguration(ODocument iConfig)
Loads the index giving the configuration.
|
OIndexMetadata |
loadMetadata(ODocument iConfig) |
void |
postCommit(OIndexAbstract.IndexTxSnapshot snapshots) |
void |
preCommit(OIndexAbstract.IndexTxSnapshot snapshots) |
OIndex |
removeCluster(String iClusterName)
Remove given cluster from the list of clusters that should be automatically indexed.
|
static Collection |
securityFilterOnRead(OIndex idx,
Collection<OIdentifiable> items) |
static OIdentifiable |
securityFilterOnRead(OIndex idx,
OIdentifiable item) |
void |
setType(OType type) |
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.
|
ODocument |
updateConfiguration()
Saves the index configuration to disk.
|
clear, count, create, cursor, delete, descCursor, flush, get, getAlgorithm, getClusters, getConfiguration, getDatabaseName, getDefinition, getFirstKey, getIndexId, getInternal, getKeySize, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getSize, getType, getVersion, isAutomatic, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, put, rebuild, rebuild, remove, remove, supportsOrderedIterations
compareTo
static final String CONFIG_KEYTYPE
static final String CONFIG_AUTOMATIC
static final String CONFIG_TYPE
static final String ALGORITHM
static final String VALUE_CONTAINER_ALGORITHM
static final String CONFIG_NAME
static final String INDEX_DEFINITION
static final String INDEX_DEFINITION_CLASS
static final String INDEX_VERSION
static final String METADATA
boolean loadFromConfiguration(ODocument iConfig)
iConfig
- ODocument instance containing the configurationODocument updateConfiguration()
OIndex.getConfiguration()
OIndex addCluster(String iClusterName)
iClusterName
- Cluster to add.OIndex removeCluster(String iClusterName)
iClusterName
- Cluster to remove.boolean canBeUsedInEqualityOperators()
OQueryOperatorEquality
operators.true
if given index can be used to calculate result of OQueryOperatorEquality
operators.boolean hasRangeQuerySupport()
OIndexMetadata loadMetadata(ODocument iConfig)
void close()
void preCommit(OIndexAbstract.IndexTxSnapshot snapshots)
void addTxOperation(OIndexAbstract.IndexTxSnapshot snapshots, OTransactionIndexChanges changes)
void commit(OIndexAbstract.IndexTxSnapshot snapshots)
void postCommit(OIndexAbstract.IndexTxSnapshot snapshots)
void setType(OType type)
String getIndexNameByKey(Object key)
key
- the index key.boolean acquireAtomicExclusiveLock(Object key)
If this index supports a more narrow locking, for example key-based sharding, it may use the
provided key
to infer a more narrow lock scope, but that is not a requirement.
key
- the index key to lock.true
if this index was locked entirely, false
if this index locking is
sensitive to the provided key
and only some subset of this index was locked.long size()
Stream<ORawPair<Object,ORID>> streamEntriesBetween(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive, boolean ascOrder)
fromKey
- 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.Stream<ORawPair<Object,ORID>> streamEntries(Collection<?> keys, boolean ascSortOrder)
keys
- Keys data of which should be returned.ascSortOrder
- Flag which determines whether data iterated by stream should be in
ascending or descending order.Stream<ORawPair<Object,ORID>> streamEntriesMajor(Object fromKey, boolean fromInclusive, boolean ascOrder)
fromKey
- 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.Stream<ORawPair<Object,ORID>> streamEntriesMinor(Object toKey, boolean toInclusive, boolean ascOrder)
toKey
- 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.static OIdentifiable securityFilterOnRead(OIndex idx, OIdentifiable item)
static boolean isLabelSecurityDefined(ODatabaseDocumentInternal database, OSecurityInternal security, String indexClass, String propertyName)
static boolean isReadRestrictedBySecurityPolicy(String indexClass, ODatabaseDocumentInternal db, OSecurityInternal security)
static Collection securityFilterOnRead(OIndex idx, Collection<OIdentifiable> items)
boolean isNativeTxSupported()
Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> interpretTxKeyChanges(OTransactionIndexChangesPerKey changes)
void doPut(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdException
boolean doRemove(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdException
boolean doRemove(OAbstractPaginatedStorage storage, Object key) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdException
Copyright © 2009–2020 OrientDB. All rights reserved.