Class OLuceneGeoSpatialIndexEngine
java.lang.Object
com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract
com.orientechnologies.spatial.engine.OLuceneSpatialIndexEngineAbstract
com.orientechnologies.spatial.engine.OLuceneGeoSpatialIndexEngine
- All Implemented Interfaces:
OLuceneIndexEngine,OBaseIndexEngine,OIndexEngine,OFreezableStorageComponent,OLuceneSpatialIndexContainer
-
Field Summary
Fields inherited from class com.orientechnologies.spatial.engine.OLuceneSpatialIndexEngineAbstract
ctx, factory, queryStrategy, strategy, strategyFactoryFields inherited from class com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract
collectionFields, indexDefinition, KEY, metadata, name, RID, versionFields inherited from interface com.orientechnologies.orient.core.index.engine.OIndexEngine
VERSION -
Constructor Summary
ConstructorsConstructorDescriptionOLuceneGeoSpatialIndexEngine(OStorage storage, String name, int id, OShapeBuilder factory) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.document.DocumentbuildDocument(Object key, OIdentifiable value) protected org.apache.lucene.spatial.SpatialStrategycreateSpatialStrategy(OIndexDefinition indexDefinition, ODocument metadata) protected Objectprotected ObjectgetInTx(Object key, OLuceneTxChanges changes) intbooleanisLegacy()voidonRecordAddedToResultSet(OLuceneQueryContext queryContext, OContextualRecordId recordId, org.apache.lucene.document.Document doc, org.apache.lucene.search.ScoreDoc score) voidput(OAtomicOperation atomicOperation, Object key, ORID value) voidput(OAtomicOperation atomicOperation, Object key, Object value) voidupdate(OAtomicOperation atomicOperation, Object key, OIndexKeyUpdater<Object> updater) voidbooleanvalidatedPut(OAtomicOperation atomicOperation, Object key, ORID value, IndexEngineValidator<Object, ORID> validator) Puts the given value under the given key into this index engine.Methods inherited from class com.orientechnologies.spatial.engine.OLuceneSpatialIndexEngineAbstract
buildQuery, createIndexWriter, hasRangeQuerySupport, init, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyStream, newGeoDocument, remove, remove, strategy, streamMethods inherited from class com.orientechnologies.lucene.engine.OLuceneIndexEngineAbstract
acquireAtomicExclusiveLock, addDocument, buildTxChanges, clear, close, create, delete, deleteQuery, descStream, flush, freeze, getDatabase, getId, getIndexNameByKey, getName, indexAnalyzer, indexName, isCollectionIndex, load, openIfClosed, queryAnalyzer, release, release, remove, remove, searcher, size, sizeInTx, updateLastAccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.index.engine.OBaseIndexEngine
applyTxChanges, hasRidBagTreesSupportMethods inherited from interface com.orientechnologies.orient.core.index.engine.OIndexEngine
getEngineAPIVersionMethods inherited from interface com.orientechnologies.spatial.engine.OLuceneSpatialIndexContainer
searcher
-
Constructor Details
-
OLuceneGeoSpatialIndexEngine
-
-
Method Details
-
createSpatialStrategy
protected org.apache.lucene.spatial.SpatialStrategy createSpatialStrategy(OIndexDefinition indexDefinition, ODocument metadata) - Specified by:
createSpatialStrategyin classOLuceneSpatialIndexEngineAbstract
-
get
-
getInTx
-
onRecordAddedToResultSet
public void onRecordAddedToResultSet(OLuceneQueryContext queryContext, OContextualRecordId recordId, org.apache.lucene.document.Document doc, org.apache.lucene.search.ScoreDoc score) - Specified by:
onRecordAddedToResultSetin interfaceOLuceneIndexEngine- Specified by:
onRecordAddedToResultSetin classOLuceneIndexEngineAbstract
-
put
-
put
-
update
-
validatedPut
public boolean validatedPut(OAtomicOperation atomicOperation, Object key, ORID value, IndexEngineValidator<Object, ORID> validator) Description copied from interface:OIndexEnginePuts the given value under the given key into this index engine. Validates the operation using the provided validator.key- the key to put the value under.value- the value to put.validator- the operation validator.- Returns:
trueif the validator allowed the put,falseotherwise.- See Also:
-
buildDocument
- Specified by:
buildDocumentin interfaceOLuceneIndexEngine- Overrides:
buildDocumentin classOLuceneSpatialIndexEngineAbstract
-
encodeKey
- Overrides:
encodeKeyin classOLuceneSpatialIndexEngineAbstract
-
decodeKey
- Overrides:
decodeKeyin classOLuceneSpatialIndexEngineAbstract
-
isLegacy
public boolean isLegacy() -
updateUniqueIndexVersion
-
getUniqueIndexVersion
-