
public abstract class OLuceneSpatialIndexEngineAbstract extends OLuceneIndexEngineAbstract implements OLuceneSpatialIndexContainer
OBaseIndexEngine.Validator<K,V>, OBaseIndexEngine.ValuesTransformer| Modifier and Type | Field and Description |
|---|---|
protected org.locationtech.spatial4j.context.SpatialContext |
ctx |
protected OShapeBuilder |
factory |
protected SpatialQueryBuilder |
queryStrategy |
protected org.apache.lucene.spatial.SpatialStrategy |
strategy |
protected OSpatialStrategyFactory |
strategyFactory |
collectionFields, indexDefinition, KEY, metadata, name, RID, versionVERSION| Constructor and Description |
|---|
OLuceneSpatialIndexEngineAbstract(OStorage storage,
String indexName,
int id,
OShapeBuilder factory) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.document.Document |
buildDocument(Object key,
OIdentifiable value) |
org.apache.lucene.search.Query |
buildQuery(Object query) |
org.apache.lucene.index.IndexWriter |
createIndexWriter(org.apache.lucene.store.Directory directory) |
protected abstract org.apache.lucene.spatial.SpatialStrategy |
createSpatialStrategy(OIndexDefinition indexDefinition,
ODocument metadata) |
boolean |
hasRangeQuerySupport() |
void |
init(String indexName,
String indexType,
OIndexDefinition indexDefinition,
boolean isAutomatic,
ODocument metadata) |
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() |
protected org.apache.lucene.document.Document |
newGeoDocument(OIdentifiable oIdentifiable,
org.locationtech.spatial4j.shape.Shape shape) |
boolean |
remove(OAtomicOperation atomicOperation,
Object key) |
org.apache.lucene.spatial.SpatialStrategy |
strategy() |
Stream<ORawPair<Object,ORID>> |
stream(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
acquireAtomicExclusiveLock, addDocument, buildTxChanges, clear, close, create, delete, deleteQuery, descStream, flush, freeze, getDatabase, getId, getIndexNameByKey, getName, indexAnalyzer, indexName, isCollectionIndex, load, onRecordAddedToResultSet, openIfClosed, openIfClosed, queryAnalyzer, release, release, remove, searcher, size, sizeInTx, updateLastAccessacquireExclusiveLock, acquireSharedLock, releaseExclusiveLock, releaseSharedLock, tryAcquireExclusiveLock, tryAcquireSharedLockaddUser, assertExclusiveLockHold, assertSharedLockHold, getUsers, isConcurrent, removeUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLegacy, searchergetInTxget, getEngineAPIVersion, put, update, validatedPutprotected final OShapeBuilder factory
protected org.locationtech.spatial4j.context.SpatialContext ctx
protected org.apache.lucene.spatial.SpatialStrategy strategy
protected OSpatialStrategyFactory strategyFactory
protected SpatialQueryBuilder queryStrategy
public OLuceneSpatialIndexEngineAbstract(OStorage storage, String indexName, int id, OShapeBuilder factory)
public void init(String indexName, String indexType, OIndexDefinition indexDefinition, boolean isAutomatic, ODocument metadata)
init in interface OBaseIndexEngineinit in class OLuceneIndexEngineAbstractprotected abstract org.apache.lucene.spatial.SpatialStrategy createSpatialStrategy(OIndexDefinition indexDefinition, ODocument metadata)
public org.apache.lucene.index.IndexWriter createIndexWriter(org.apache.lucene.store.Directory directory)
throws IOException
createIndexWriter in class OLuceneIndexEngineAbstractIOExceptionpublic boolean remove(OAtomicOperation atomicOperation, Object key)
remove in interface OIndexEnginepublic 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 OBaseIndexEnginestream in class OLuceneIndexEngineAbstractpublic Stream<Object> keyStream()
keyStream in interface OBaseIndexEnginekeyStream in class OLuceneIndexEngineAbstractpublic boolean hasRangeQuerySupport()
hasRangeQuerySupport in interface OBaseIndexEngineprotected org.apache.lucene.document.Document newGeoDocument(OIdentifiable oIdentifiable, org.locationtech.spatial4j.shape.Shape shape)
public 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.spatial.SpatialStrategy strategy()
strategy in interface OLuceneSpatialIndexContainerCopyright © 2009–2025 OrientDB. All rights reserved.