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, version
VERSION
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, 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
isLegacy, searcher
getInTx
get, getEngineAPIVersion, put, update, validatedPut
protected 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 OBaseIndexEngine
init
in class OLuceneIndexEngineAbstract
protected 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 OLuceneIndexEngineAbstract
IOException
public boolean remove(OAtomicOperation atomicOperation, Object key)
remove
in interface OIndexEngine
public Stream<ORawPair<Object,ORID>> iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesBetween
in interface OBaseIndexEngine
public Stream<ORawPair<Object,ORID>> iterateEntriesMajor(Object fromKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMajor
in interface OBaseIndexEngine
public Stream<ORawPair<Object,ORID>> iterateEntriesMinor(Object toKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMinor
in interface OBaseIndexEngine
public Stream<ORawPair<Object,ORID>> stream(OBaseIndexEngine.ValuesTransformer valuesTransformer)
stream
in interface OBaseIndexEngine
stream
in class OLuceneIndexEngineAbstract
public Stream<Object> keyStream()
keyStream
in interface OBaseIndexEngine
keyStream
in class OLuceneIndexEngineAbstract
public boolean hasRangeQuerySupport()
hasRangeQuerySupport
in interface OBaseIndexEngine
protected 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 OLuceneIndexEngine
public org.apache.lucene.search.Query buildQuery(Object query)
buildQuery
in interface OLuceneIndexEngine
public org.apache.lucene.spatial.SpatialStrategy strategy()
strategy
in interface OLuceneSpatialIndexContainer
Copyright © 2009–2020 OrientDB. All rights reserved.