org.apache.blur.analysis.type.spatial
Class BaseSpatialFieldTypeDefinition
java.lang.Object
org.apache.blur.analysis.FieldTypeDefinition
org.apache.blur.analysis.type.CustomFieldTypeDefinition
org.apache.blur.analysis.type.spatial.BaseSpatialFieldTypeDefinition
- Direct Known Subclasses:
- SpatialPointVectorStrategyFieldTypeDefinition, SpatialRecursivePrefixTreeStrategyFieldTypeDefinition, SpatialTermQueryPrefixTreeStrategyFieldTypeDefinition
public abstract class BaseSpatialFieldTypeDefinition
- extends CustomFieldTypeDefinition
Methods inherited from class org.apache.blur.analysis.FieldTypeDefinition |
configure, getAlternateFieldNames, getColumnName, getFamily, getFieldType, getName, getProperties, getSubColumnName, isFieldLessIndexed, isSortEnable, setColumnName, setFamily, setFieldLessIndexed, setFieldType, setProperties, setSortEnable, setSubColumnName |
GEOHASH_PREFIX_TREE
public static final String GEOHASH_PREFIX_TREE
- See Also:
- Constant Field Values
QUAD_PREFIX_TREE
public static final String QUAD_PREFIX_TREE
- See Also:
- Constant Field Values
SPATIAL_PREFIX_TREE
public static final String SPATIAL_PREFIX_TREE
- See Also:
- Constant Field Values
MAX_LEVELS
public static final String MAX_LEVELS
- See Also:
- Constant Field Values
BaseSpatialFieldTypeDefinition
public BaseSpatialFieldTypeDefinition()
getFieldsForColumn
public Iterable<? extends org.apache.lucene.document.Field> getFieldsForColumn(String family,
Column column)
- Description copied from class:
FieldTypeDefinition
- Gets the
Field
s for indexing from a single Column.
- Specified by:
getFieldsForColumn
in class FieldTypeDefinition
column
- the Column
- Returns:
- the
Iterable
of fields.
getFieldsForSubColumn
public Iterable<? extends org.apache.lucene.document.Field> getFieldsForSubColumn(String family,
Column column,
String subName)
- Description copied from class:
FieldTypeDefinition
- Gets the
Field
s for indexing from a single Column, but should not
be stored because the original value should be stored in the main
Column
.
- Specified by:
getFieldsForSubColumn
in class FieldTypeDefinition
column
- the Column
- Returns:
- the
Iterable
of fields.
getCustomQuery
public org.apache.lucene.search.Query getCustomQuery(String text)
- Overrides:
getCustomQuery
in class FieldTypeDefinition
getSupportedOperations
public List<org.apache.lucene.spatial.query.SpatialOperation> getSupportedOperations()
setSupportedOperations
public void setSupportedOperations(List<org.apache.lucene.spatial.query.SpatialOperation> supportedOperations)
addSupportedOperations
public void addSupportedOperations(org.apache.lucene.spatial.query.SpatialOperation so)
getSupportedIndexedShapes
public List<Class<? extends com.spatial4j.core.shape.Shape>> getSupportedIndexedShapes()
setSupportedIndexedShapes
public void setSupportedIndexedShapes(List<Class<? extends com.spatial4j.core.shape.Shape>> supportedIndexedShapes)
addSupportedIndexedShapes
public void addSupportedIndexedShapes(Class<? extends com.spatial4j.core.shape.Shape> c)
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.