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 Closeableclose in interface AutoCloseableclose in class QueryExtensionManagerIOExceptionpublic void registerType(SpaceTypeDescriptor typeDescriptor)
registerType in class QueryExtensionManagerpublic boolean insertEntry(SpaceServerEntry entry, boolean hasPrevious)
insertEntry in class QueryExtensionManagerpublic void removeEntry(SpaceTypeDescriptor typeDescriptor, String uid, int version)
removeEntry in class QueryExtensionManagerpublic QueryExtensionEntryIterator queryByIndex(String typeName, String path, String operationName, Object operand)
queryByIndex in class QueryExtensionManagerpublic boolean accept(String typeName, String path, String operation, Object leftOperand, Object rightOperand)
accept in class QueryExtensionManagerprotected 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 QueryExtensionManagerCopyright © GigaSpaces.