public class LuceneSpatialQueryExtensionManager extends QueryExtensionManager
Constructor and Description |
---|
LuceneSpatialQueryExtensionManager(LuceneSpatialQueryExtensionProvider provider,
QueryExtensionRuntimeInfo info) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String typeName,
String path,
String operation,
Object leftOperand,
Object rightOperand) |
void |
close() |
protected String |
concat(String uid,
int version) |
protected org.apache.lucene.document.Document |
createDocumentIfNeeded(LuceneSpatialTypeIndex luceneHolder,
SpaceServerEntry entry) |
Map<String,LongCounter> |
getIndexedPathsUsageCounters(String typeName) |
boolean |
insertEntry(SpaceServerEntry entry,
boolean hasPrevious) |
QueryExtensionEntryIterator |
queryByIndex(String typeName,
String path,
String operationName,
Object operand) |
void |
registerType(SpaceTypeDescriptor typeDescriptor) |
void |
removeEntry(SpaceTypeDescriptor typeDescriptor,
String uid,
int version) |
protected org.apache.lucene.spatial.query.SpatialOperation |
toOperation(String operationName) |
org.locationtech.spatial4j.shape.Shape |
toShape(Object obj) |
protected static final String XAP_ID
public LuceneSpatialQueryExtensionManager(LuceneSpatialQueryExtensionProvider provider, QueryExtensionRuntimeInfo info)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class QueryExtensionManager
IOException
public void registerType(SpaceTypeDescriptor typeDescriptor)
registerType
in class QueryExtensionManager
public boolean insertEntry(SpaceServerEntry entry, boolean hasPrevious)
insertEntry
in class QueryExtensionManager
public void removeEntry(SpaceTypeDescriptor typeDescriptor, String uid, int version)
removeEntry
in class QueryExtensionManager
public QueryExtensionEntryIterator queryByIndex(String typeName, String path, String operationName, Object operand)
queryByIndex
in class QueryExtensionManager
public boolean accept(String typeName, String path, String operation, Object leftOperand, Object rightOperand)
accept
in class QueryExtensionManager
protected org.apache.lucene.document.Document createDocumentIfNeeded(LuceneSpatialTypeIndex luceneHolder, SpaceServerEntry entry)
public org.locationtech.spatial4j.shape.Shape toShape(Object obj)
protected org.apache.lucene.spatial.query.SpatialOperation toOperation(String operationName)
public Map<String,LongCounter> getIndexedPathsUsageCounters(String typeName)
getIndexedPathsUsageCounters
in class QueryExtensionManager
Copyright © GigaSpaces.