public class OLuceneLegacySpatialIndexEngine extends OLuceneSpatialIndexEngineAbstract
OBaseIndexEngine.Validator<K,V>, OBaseIndexEngine.ValuesTransformer
ctx, factory, queryStrategy, strategy, strategyFactory
collectionFields, indexDefinition, KEY, metadata, name, RID, version
VERSION
Constructor and Description |
---|
OLuceneLegacySpatialIndexEngine(OStorage storage,
String indexName,
int id,
OShapeBuilder factory) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Document |
buildDocument(Object key,
OIdentifiable value) |
protected org.apache.lucene.spatial.SpatialStrategy |
createSpatialStrategy(OIndexDefinition indexDefinition,
ODocument metadata) |
Object |
get(Object key) |
Set<OIdentifiable> |
getInTx(Object key,
OLuceneTxChanges changes) |
boolean |
isLegacy() |
void |
onRecordAddedToResultSet(OLuceneQueryContext queryContext,
OContextualRecordId recordId,
org.apache.lucene.document.Document doc,
org.apache.lucene.search.ScoreDoc score) |
void |
put(OAtomicOperation atomicOperation,
Object key,
Object value) |
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.
|
buildQuery, createIndexWriter, hasRangeQuerySupport, init, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyStream, newGeoDocument, remove, strategy, stream
acquireAtomicExclusiveLock, addDocument, buildTxChanges, clear, close, create, delete, deleteQuery, descStream, flush, freeze, getDatabase, getId, getIndexNameByKey, getName, indexAnalyzer, indexName, isCollectionIndex, load, openIfClosed, queryAnalyzer, release, release, remove, searcher, size, sizeInTx, updateLastAccess
acquireExclusiveLock, acquireSharedLock, releaseExclusiveLock, releaseSharedLock, tryAcquireExclusiveLock, tryAcquireSharedLock
addUser, assertExclusiveLockHold, assertSharedLockHold, getUsers, isConcurrent, removeUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
searcher
getEngineAPIVersion
public OLuceneLegacySpatialIndexEngine(OStorage storage, String indexName, int id, OShapeBuilder factory)
public void onRecordAddedToResultSet(OLuceneQueryContext queryContext, OContextualRecordId recordId, org.apache.lucene.document.Document doc, org.apache.lucene.search.ScoreDoc score)
onRecordAddedToResultSet
in interface OLuceneIndexEngine
onRecordAddedToResultSet
in class OLuceneIndexEngineAbstract
public Set<OIdentifiable> getInTx(Object key, OLuceneTxChanges changes)
public void put(OAtomicOperation atomicOperation, Object key, Object value)
public void update(OAtomicOperation atomicOperation, Object key, OIndexKeyUpdater<Object> updater)
public boolean validatedPut(OAtomicOperation atomicOperation, Object key, ORID value, OBaseIndexEngine.Validator<Object,ORID> validator)
OIndexEngine
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.Validator#validate(Object, Object, Object)
public org.apache.lucene.document.Document buildDocument(Object key, OIdentifiable value)
buildDocument
in interface OLuceneIndexEngine
buildDocument
in class OLuceneSpatialIndexEngineAbstract
protected org.apache.lucene.spatial.SpatialStrategy createSpatialStrategy(OIndexDefinition indexDefinition, ODocument metadata)
createSpatialStrategy
in class OLuceneSpatialIndexEngineAbstract
public boolean isLegacy()
Copyright © 2009–2020 OrientDB. All rights reserved.