public interface OIndexEngine extends OBaseIndexEngine
OBaseIndexEngine.Validator<K,V>, OBaseIndexEngine.ValuesTransformer
Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object key) |
default int |
getEngineAPIVersion() |
void |
load(String indexName,
OBinarySerializer valueSerializer,
boolean isAutomatic,
OBinarySerializer keySerializer,
OType[] keyTypes,
boolean nullPointerSupport,
int keySize,
Map<String,String> engineProperties,
OEncryption encryption) |
void |
put(OAtomicOperation atomicOperation,
Object key,
Object value) |
boolean |
remove(OAtomicOperation atomicOperation,
Object key) |
void |
update(OAtomicOperation atomicOperation,
Object key,
OIndexKeyUpdater<Object> updater) |
boolean |
validatedPut(OAtomicOperation atomicOperation,
Object key,
ORID value,
OBaseIndexEngine.Validator<Object,ORID> validator)
Puts the given value under the given key into this index engine.
|
acquireAtomicExclusiveLock, clear, close, create, delete, descStream, flush, getId, getIndexNameByKey, getName, hasRangeQuerySupport, init, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyStream, size, stream
static final int VERSION
void put(OAtomicOperation atomicOperation, Object key, Object value) throws IOException
IOException
void update(OAtomicOperation atomicOperation, Object key, OIndexKeyUpdater<Object> updater) throws IOException
IOException
boolean remove(OAtomicOperation atomicOperation, Object key) throws IOException
IOException
boolean validatedPut(OAtomicOperation atomicOperation, Object key, ORID value, OBaseIndexEngine.Validator<Object,ORID> validator) throws IOException
atomicOperation
- key
- the key to put the value under.value
- the value to put.validator
- the operation validator.true
if the validator allowed the put, false
otherwise.IOException
Validator#validate(Object, Object, Object)
default int getEngineAPIVersion()
getEngineAPIVersion
in interface OBaseIndexEngine
void load(String indexName, OBinarySerializer valueSerializer, boolean isAutomatic, OBinarySerializer keySerializer, OType[] keyTypes, boolean nullPointerSupport, int keySize, Map<String,String> engineProperties, OEncryption encryption)
Copyright © 2009–2020 OrientDB. All rights reserved.