org.apache.blur.analysis.type.spatial
Class SpatialPointVectorStrategyFieldTypeDefinition
java.lang.Object
org.apache.blur.analysis.FieldTypeDefinition
org.apache.blur.analysis.type.CustomFieldTypeDefinition
org.apache.blur.analysis.type.spatial.BaseSpatialFieldTypeDefinition
org.apache.blur.analysis.type.spatial.SpatialPointVectorStrategyFieldTypeDefinition
public class SpatialPointVectorStrategyFieldTypeDefinition
- extends BaseSpatialFieldTypeDefinition
Methods inherited from class org.apache.blur.analysis.FieldTypeDefinition |
getColumnName, getFamily, getFieldType, getProperties, getSubColumnName, isFieldLessIndexed, isSortEnable, setColumnName, setFamily, setFieldLessIndexed, setFieldType, setProperties, setSortEnable, setSubColumnName |
NAME
public static final String NAME
- See Also:
- Constant Field Values
SpatialPointVectorStrategyFieldTypeDefinition
public SpatialPointVectorStrategyFieldTypeDefinition()
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".
- fam1.col1 - This field is used for storage.
- fam1.col1__x - This field is used to index the x component.
- fam1.col1__y - This field is used to index the y component.
- Overrides:
getAlternateFieldNames
in class FieldTypeDefinition
- Returns:
- an
Iterable
of String
s.
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.