
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 |
KEY, metadata, name, RID, versionVERSION| Constructor and Description |
|---|
OLuceneSpatialIndexEngineAbstract(OStorage storage,
String indexName,
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) |
boolean |
contains(Object key) |
org.apache.lucene.index.IndexWriter |
createIndexWriter(org.apache.lucene.store.Directory directory) |
protected abstract org.apache.lucene.spatial.SpatialStrategy |
createSpatialStrategy(OIndexDefinition indexDefinition,
ODocument metadata) |
OIndexCursor |
cursor(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
Object |
getFirstKey() |
Object |
getLastKey() |
boolean |
hasRangeQuerySupport() |
void |
init(String indexName,
String indexType,
OIndexDefinition indexDefinition,
boolean isAutomatic,
ODocument metadata) |
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() |
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() |
acquireAtomicExclusiveLock, addDocument, buildTxChanges, clear, close, create, delete, deleteQuery, deleteWithoutLoad, descCursor, flush, freeze, getDatabase, getIndexNameByKey, getName, getVersion, indexAnalyzer, indexName, isCollectionIndex, load, onRecordAddedToResultSet, 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, searchergetInTxgetEngineAPIVersion, put, update, validatedPutgetprotected 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, 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 contains(Object key)
contains in interface OBaseIndexEnginepublic boolean remove(OAtomicOperation atomicOperation, Object key)
remove in interface OBaseIndexEnginepublic 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 OBaseIndexEnginecursor in class OLuceneIndexEngineAbstractpublic OIndexKeyCursor keyCursor()
keyCursor in interface OBaseIndexEnginekeyCursor 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.