
public class OLuceneSpatialIndexEngineDelegator extends Object implements OLuceneIndexEngine, OLuceneSpatialIndexContainer
OBaseIndexEngine.Validator<K,V>, OBaseIndexEngine.ValuesTransformerVERSION| Constructor and Description |
|---|
OLuceneSpatialIndexEngineDelegator(int id,
String name,
Boolean durableInNonTxMode,
OStorage storage,
int version) |
| 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 engine.
|
org.apache.lucene.document.Document |
buildDocument(Object key,
OIdentifiable value) |
org.apache.lucene.search.Query |
buildQuery(Object query) |
OLuceneTxChanges |
buildTxChanges() |
void |
clear(OAtomicOperation atomicOperation) |
void |
close() |
void |
create(OAtomicOperation atomicOperation,
OBinarySerializer valueSerializer,
boolean isAutomatic,
OType[] keyTypes,
boolean nullPointerSupport,
OBinarySerializer keySerializer,
int keySize,
Map<String,String> engineProperties,
OEncryption encryption) |
void |
delete(OAtomicOperation atomicOperation) |
org.apache.lucene.search.Query |
deleteQuery(Object key,
OIdentifiable value) |
Stream<ORawPair<Object,ORID>> |
descStream(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
void |
flush() |
void |
freeze(boolean throwException)
After this method finished it's execution, all threads that are going to perform data
modifications in storage should wait till
OFreezableStorageComponent.release() method will be called. |
Object |
get(Object key) |
OLuceneIndexEngine |
getDelegate() |
int |
getId() |
String |
getIndexNameByKey(Object key) |
Set<OIdentifiable> |
getInTx(Object key,
OLuceneTxChanges changes) |
String |
getName() |
boolean |
hasRangeQuerySupport() |
org.apache.lucene.analysis.Analyzer |
indexAnalyzer() |
String |
indexName() |
void |
init(String indexName,
String indexType,
OIndexDefinition indexDefinition,
boolean isAutomatic,
ODocument metadata) |
boolean |
isCollectionIndex() |
boolean |
isLegacy() |
Stream<ORawPair<Object,ORID>> |
iterateEntriesBetween(Object rangeFrom,
boolean fromInclusive,
Object rangeTo,
boolean toInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
Stream<ORawPair<Object,ORID>> |
iterateEntriesMajor(Object fromKey,
boolean isInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
Stream<ORawPair<Object,ORID>> |
iterateEntriesMinor(Object toKey,
boolean isInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
Stream<Object> |
keyStream() |
void |
load(String indexName,
OBinarySerializer valueSerializer,
boolean isAutomatic,
OBinarySerializer keySerializer,
OType[] keyTypes,
boolean nullPointerSupport,
int keySize,
Map<String,String> engineProperties,
OEncryption encryption) |
void |
onRecordAddedToResultSet(OLuceneQueryContext queryContext,
OContextualRecordId recordId,
org.apache.lucene.document.Document ret,
org.apache.lucene.search.ScoreDoc score) |
void |
put(OAtomicOperation atomicOperation,
Object key,
Object value) |
org.apache.lucene.analysis.Analyzer |
queryAnalyzer() |
void |
release()
After this method finished execution all threads that are waiting to perform data modifications
in storage will be awaken and will be allowed to continue their execution.
|
void |
release(org.apache.lucene.search.IndexSearcher searcher) |
boolean |
remove(OAtomicOperation atomicOperation,
Object key) |
boolean |
remove(Object key,
OIdentifiable value) |
org.apache.lucene.search.IndexSearcher |
searcher() |
long |
size(OBaseIndexEngine.ValuesTransformer transformer) |
long |
sizeInTx(OLuceneTxChanges changes) |
org.apache.lucene.spatial.SpatialStrategy |
strategy() |
Stream<ORawPair<Object,ORID>> |
stream(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEngineAPIVersionpublic int getId()
getId in interface OBaseIndexEnginepublic void init(String indexName, String indexType, OIndexDefinition indexDefinition, boolean isAutomatic, ODocument metadata)
init in interface OBaseIndexEnginepublic void flush()
flush in interface OBaseIndexEnginepublic void create(OAtomicOperation atomicOperation, OBinarySerializer valueSerializer, boolean isAutomatic, OType[] keyTypes, boolean nullPointerSupport, OBinarySerializer keySerializer, int keySize, Map<String,String> engineProperties, OEncryption encryption)
create in interface OBaseIndexEnginepublic void delete(OAtomicOperation atomicOperation)
delete in interface OBaseIndexEnginepublic void load(String indexName, OBinarySerializer valueSerializer, boolean isAutomatic, OBinarySerializer keySerializer, OType[] keyTypes, boolean nullPointerSupport, int keySize, Map<String,String> engineProperties, OEncryption encryption)
load in interface OIndexEnginepublic boolean remove(OAtomicOperation atomicOperation, Object key)
remove in interface OIndexEnginepublic void clear(OAtomicOperation atomicOperation)
clear in interface OBaseIndexEnginepublic void close()
close in interface OBaseIndexEnginepublic Object get(Object key)
get in interface OIndexEnginepublic void put(OAtomicOperation atomicOperation, Object key, Object value)
put in interface OIndexEnginepublic void update(OAtomicOperation atomicOperation, Object key, OIndexKeyUpdater<Object> updater)
update in interface OIndexEnginepublic boolean validatedPut(OAtomicOperation atomicOperation, Object key, ORID value, OBaseIndexEngine.Validator<Object,ORID> validator)
OIndexEnginevalidatedPut in interface OIndexEnginekey - 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.Validator#validate(Object, Object, Object)public Stream<ORawPair<Object,ORID>> iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesBetween in interface OBaseIndexEnginepublic Stream<ORawPair<Object,ORID>> iterateEntriesMajor(Object fromKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMajor in interface OBaseIndexEnginepublic Stream<ORawPair<Object,ORID>> iterateEntriesMinor(Object toKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMinor in interface OBaseIndexEnginepublic Stream<ORawPair<Object,ORID>> stream(OBaseIndexEngine.ValuesTransformer valuesTransformer)
stream in interface OBaseIndexEnginepublic Stream<ORawPair<Object,ORID>> descStream(OBaseIndexEngine.ValuesTransformer valuesTransformer)
descStream in interface OBaseIndexEnginepublic Stream<Object> keyStream()
keyStream in interface OBaseIndexEnginepublic long size(OBaseIndexEngine.ValuesTransformer transformer)
size in interface OBaseIndexEnginepublic boolean hasRangeQuerySupport()
hasRangeQuerySupport in interface OBaseIndexEnginepublic String getName()
getName in interface OBaseIndexEnginepublic String indexName()
indexName in interface OLuceneIndexEnginepublic void onRecordAddedToResultSet(OLuceneQueryContext queryContext, OContextualRecordId recordId, org.apache.lucene.document.Document ret, org.apache.lucene.search.ScoreDoc score)
onRecordAddedToResultSet in interface OLuceneIndexEnginepublic org.apache.lucene.document.Document buildDocument(Object key, OIdentifiable value)
buildDocument in interface OLuceneIndexEnginepublic org.apache.lucene.search.Query buildQuery(Object query)
buildQuery in interface OLuceneIndexEnginepublic org.apache.lucene.analysis.Analyzer indexAnalyzer()
indexAnalyzer in interface OLuceneIndexEnginepublic org.apache.lucene.analysis.Analyzer queryAnalyzer()
queryAnalyzer in interface OLuceneIndexEnginepublic boolean remove(Object key, OIdentifiable value)
remove in interface OLuceneIndexEnginepublic org.apache.lucene.search.IndexSearcher searcher()
searcher in interface OLuceneIndexEnginesearcher in interface OLuceneSpatialIndexContainerpublic void release(org.apache.lucene.search.IndexSearcher searcher)
release in interface OLuceneIndexEnginepublic org.apache.lucene.spatial.SpatialStrategy strategy()
strategy in interface OLuceneSpatialIndexContainerpublic boolean isLegacy()
isLegacy in interface OLuceneSpatialIndexContainerpublic Set<OIdentifiable> getInTx(Object key, OLuceneTxChanges changes)
getInTx in interface OLuceneIndexEnginepublic long sizeInTx(OLuceneTxChanges changes)
sizeInTx in interface OLuceneIndexEnginepublic OLuceneTxChanges buildTxChanges() throws IOException
buildTxChanges in interface OLuceneIndexEngineIOExceptionpublic org.apache.lucene.search.Query deleteQuery(Object key, OIdentifiable value)
deleteQuery in interface OLuceneIndexEnginepublic boolean isCollectionIndex()
isCollectionIndex in interface OLuceneIndexEnginepublic void freeze(boolean throwException)
OFreezableStorageComponentOFreezableStorageComponent.release() method will be called. This method
will wait till all ongoing modifications will be finished.freeze in interface OFreezableStorageComponentthrowException - If true OModificationOperationProhibitedException
exception will be thrown on call of methods that requires storage modification. Otherwise
other threads will wait for OFreezableStorageComponent.release() method call.public void release()
OFreezableStorageComponentrelease in interface OFreezableStorageComponentpublic boolean acquireAtomicExclusiveLock(Object key)
OBaseIndexEngine
If this index engine 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.
acquireAtomicExclusiveLock in interface OBaseIndexEnginekey - 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.public String getIndexNameByKey(Object key)
getIndexNameByKey in interface OBaseIndexEnginepublic OLuceneIndexEngine getDelegate()
Copyright © 2009–2025 OrientDB. All rights reserved.