org.apache.blur.analysis.type.spatial
Class BaseSpatialFieldTypeDefinition

java.lang.Object
  extended by org.apache.blur.analysis.FieldTypeDefinition
      extended by org.apache.blur.analysis.type.CustomFieldTypeDefinition
          extended by org.apache.blur.analysis.type.spatial.BaseSpatialFieldTypeDefinition
Direct Known Subclasses:
SpatialPointVectorStrategyFieldTypeDefinition, SpatialRecursivePrefixTreeStrategyFieldTypeDefinition, SpatialTermQueryPrefixTreeStrategyFieldTypeDefinition

public abstract class BaseSpatialFieldTypeDefinition
extends CustomFieldTypeDefinition


Field Summary
static String GEOHASH_PREFIX_TREE
           
static String MAX_LEVELS
           
static String QUAD_PREFIX_TREE
           
static String SPATIAL_PREFIX_TREE
           
 
Constructor Summary
BaseSpatialFieldTypeDefinition()
           
 
Method Summary
 void addSupportedIndexedShapes(Class<? extends com.spatial4j.core.shape.Shape> c)
           
 void addSupportedOperations(org.apache.lucene.spatial.query.SpatialOperation so)
           
 org.apache.lucene.search.Query getCustomQuery(String text)
           
 Iterable<? extends org.apache.lucene.document.Field> getFieldsForColumn(String family, Column column)
          Gets the Fields for indexing from a single Column.
 Iterable<? extends org.apache.lucene.document.Field> getFieldsForSubColumn(String family, Column column, String subName)
          Gets the Fields for indexing from a single Column, but should not be stored because the original value should be stored in the main Column.
 List<Class<? extends com.spatial4j.core.shape.Shape>> getSupportedIndexedShapes()
           
 List<org.apache.lucene.spatial.query.SpatialOperation> getSupportedOperations()
           
 void setSupportedIndexedShapes(List<Class<? extends com.spatial4j.core.shape.Shape>> supportedIndexedShapes)
           
 void setSupportedOperations(List<org.apache.lucene.spatial.query.SpatialOperation> supportedOperations)
           
 
Methods inherited from class org.apache.blur.analysis.type.CustomFieldTypeDefinition
checkSupportForCustomQuery, checkSupportForFuzzyQuery, checkSupportForPrefixQuery, checkSupportForRegexQuery, checkSupportForSorting, checkSupportForWildcardQuery, getAnalyzerForIndex, getAnalyzerForQuery, getSortField, isNumeric
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BaseSpatialFieldTypeDefinition

public BaseSpatialFieldTypeDefinition()
Method Detail

getFieldsForColumn

public Iterable<? extends org.apache.lucene.document.Field> getFieldsForColumn(String family,
                                                                               Column column)
Description copied from class: FieldTypeDefinition
Gets the Fields 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 Fields 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.