
public class OLuceneSpatialIndexEngineDelegator extends Object implements OLuceneIndexEngine, OLuceneSpatialIndexContainer
OBaseIndexEngine.Validator<K,V>, OBaseIndexEngine.ValuesTransformerVERSION| Constructor and Description |
|---|
OLuceneSpatialIndexEngineDelegator(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() |
boolean |
contains(Object key) |
void |
create(OAtomicOperation atomicOperation,
OBinarySerializer valueSerializer,
boolean isAutomatic,
OType[] keyTypes,
boolean nullPointerSupport,
OBinarySerializer keySerializer,
int keySize,
Set<String> clustersToIndex,
Map<String,String> engineProperties,
ODocument metadata,
OEncryption encryption) |
OIndexCursor |
cursor(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
void |
delete(OAtomicOperation atomicOperation) |
org.apache.lucene.search.Query |
deleteQuery(Object key,
OIdentifiable value) |
void |
deleteWithoutLoad(OAtomicOperation atomicOperation,
String indexName) |
OIndexCursor |
descCursor(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() |
Object |
getFirstKey() |
String |
getIndexNameByKey(Object key) |
Set<OIdentifiable> |
getInTx(Object key,
OLuceneTxChanges changes) |
Object |
getLastKey() |
String |
getName() |
int |
getVersion() |
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() |
OIndexCursor |
iterateEntriesBetween(Object rangeFrom,
boolean fromInclusive,
Object rangeTo,
boolean toInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
OIndexCursor |
iterateEntriesMajor(Object fromKey,
boolean isInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
OIndexCursor |
iterateEntriesMinor(Object toKey,
boolean isInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
OIndexKeyCursor |
keyCursor() |
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() |
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 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, Set<String> clustersToIndex, Map<String,String> engineProperties, ODocument metadata, OEncryption encryption)
create in interface OBaseIndexEnginepublic void delete(OAtomicOperation atomicOperation)
delete in interface OBaseIndexEnginepublic void deleteWithoutLoad(OAtomicOperation atomicOperation, String indexName)
deleteWithoutLoad 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 contains(Object key)
contains in interface OBaseIndexEnginepublic boolean remove(OAtomicOperation atomicOperation, Object key)
remove in interface OBaseIndexEnginepublic void clear(OAtomicOperation atomicOperation)
clear in interface OBaseIndexEnginepublic void close()
close in interface OBaseIndexEnginepublic Object get(Object key)
get in interface OBaseIndexEnginepublic 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 Object getFirstKey()
getFirstKey in interface OBaseIndexEnginepublic Object getLastKey()
getLastKey in interface OBaseIndexEnginepublic OIndexCursor iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesBetween in interface OBaseIndexEnginepublic OIndexCursor iterateEntriesMajor(Object fromKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMajor in interface OBaseIndexEnginepublic OIndexCursor iterateEntriesMinor(Object toKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMinor in interface OBaseIndexEnginepublic OIndexCursor cursor(OBaseIndexEngine.ValuesTransformer valuesTransformer)
cursor in interface OBaseIndexEnginepublic OIndexCursor descCursor(OBaseIndexEngine.ValuesTransformer valuesTransformer)
descCursor in interface OBaseIndexEnginepublic OIndexKeyCursor keyCursor()
keyCursor in interface OBaseIndexEnginepublic long size(OBaseIndexEngine.ValuesTransformer transformer)
size in interface OBaseIndexEnginepublic boolean hasRangeQuerySupport()
hasRangeQuerySupport in interface OBaseIndexEnginepublic int getVersion()
getVersion 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)
OBaseIndexEngineAcquires exclusive lock in the active atomic operation running on the current thread for this index engine.
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.