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

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
              extended by org.apache.blur.analysis.type.spatial.SpatialPointVectorStrategyFieldTypeDefinition

public class SpatialPointVectorStrategyFieldTypeDefinition
extends BaseSpatialFieldTypeDefinition


Field Summary
static String NAME
           
 
Fields inherited from class org.apache.blur.analysis.type.spatial.BaseSpatialFieldTypeDefinition
GEOHASH_PREFIX_TREE, MAX_LEVELS, QUAD_PREFIX_TREE, SPATIAL_PREFIX_TREE
 
Constructor Summary
SpatialPointVectorStrategyFieldTypeDefinition()
           
 
Method Summary
 void configure(String fieldNameForThisInstance, Map<String,String> properties, org.apache.hadoop.conf.Configuration configuration)
          Configures the field type.
 Collection<String> getAlternateFieldNames()
          Gets the alternate field names for this instance.
 org.apache.lucene.analysis.Analyzer getAnalyzerForIndex(String fieldName)
          The CustomFieldTypeDefinition.getAnalyzerForIndex(String) should never be called for a CustomFieldTypeDefinition because this type will create the IndexableField objects from the FieldTypeDefinition.getFieldsForColumn(String, Column) method or FieldTypeDefinition.getFieldsForSubColumn(String, Column, String) method.
 String getName()
          Gets the name of the field type.
 
Methods inherited from class org.apache.blur.analysis.type.spatial.BaseSpatialFieldTypeDefinition
addSupportedIndexedShapes, addSupportedOperations, getCustomQuery, getFieldsForColumn, getFieldsForSubColumn, getSupportedIndexedShapes, getSupportedOperations, setSupportedIndexedShapes, setSupportedOperations
 
Methods inherited from class org.apache.blur.analysis.type.CustomFieldTypeDefinition
checkSupportForCustomQuery, checkSupportForFuzzyQuery, checkSupportForPrefixQuery, checkSupportForRegexQuery, checkSupportForSorting, checkSupportForWildcardQuery, getAnalyzerForQuery, getSortField, isNumeric
 
Methods inherited from class org.apache.blur.analysis.FieldTypeDefinition
getColumnName, getFamily, getFieldType, 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

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

SpatialPointVectorStrategyFieldTypeDefinition

public SpatialPointVectorStrategyFieldTypeDefinition()
Method Detail

getName

public String getName()
Description copied from class: FieldTypeDefinition
Gets the name of the field type.

Specified by:
getName in class FieldTypeDefinition
Returns:
the name.

configure

public void configure(String fieldNameForThisInstance,
                      Map<String,String> properties,
                      org.apache.hadoop.conf.Configuration configuration)
Description copied from class: FieldTypeDefinition
Configures the field type.

Specified by:
configure in class FieldTypeDefinition
properties - the properties.

getAlternateFieldNames

public Collection<String> getAlternateFieldNames()
Description copied from class: FieldTypeDefinition
Gets the alternate field names for this instance. For example in the PointVectorStrategy, there are two field that are created with suffixes from the base field name. For example if the base field name was "fam1.col1" then the two suffix names would be "fam1.col1__x" and "fam1.col1__y".
Overrides:
getAlternateFieldNames in class FieldTypeDefinition
Returns:
an Iterable of Strings.

getAnalyzerForIndex

public org.apache.lucene.analysis.Analyzer getAnalyzerForIndex(String fieldName)
Description copied from class: CustomFieldTypeDefinition
The CustomFieldTypeDefinition.getAnalyzerForIndex(String) should never be called for a CustomFieldTypeDefinition because this type will create the IndexableField objects from the FieldTypeDefinition.getFieldsForColumn(String, Column) method or FieldTypeDefinition.getFieldsForSubColumn(String, Column, String) method.

Overrides:
getAnalyzerForIndex in class CustomFieldTypeDefinition
Parameters:
fieldName - the field name to get the analyzer, this could be the base field name or the alternative.
Returns:
the Analyzer.


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.