org.apache.blur.analysis.type
Class NumericFieldTypeDefinition

java.lang.Object
  extended by org.apache.blur.analysis.FieldTypeDefinition
      extended by org.apache.blur.analysis.type.NumericFieldTypeDefinition
Direct Known Subclasses:
DateFieldTypeDefinition, DoubleFieldTypeDefinition, FloatFieldTypeDefinition, IntFieldTypeDefinition, LongFieldTypeDefinition

public abstract class NumericFieldTypeDefinition
extends FieldTypeDefinition


Constructor Summary
NumericFieldTypeDefinition()
           
 
Method Summary
 boolean checkSupportForCustomQuery()
           
 boolean checkSupportForFuzzyQuery()
           
 boolean checkSupportForPrefixQuery()
           
 boolean checkSupportForRegexQuery()
           
 boolean checkSupportForSorting()
           
 boolean checkSupportForWildcardQuery()
           
 org.apache.lucene.analysis.Analyzer getAnalyzerForIndex(String fieldName)
          Gets the Analyzer for indexing this should be the same for the querying unless you have a good reason.
 org.apache.lucene.analysis.Analyzer getAnalyzerForQuery(String fieldName)
          Gets the Analyzer for querying this should be the same for the indexing unless you have a good reason.
abstract  org.apache.lucene.search.Query getNewRangeQuery(String field, String part1, String part2, boolean startInclusive, boolean endInclusive)
           
 boolean isNumeric()
           
 
Methods inherited from class org.apache.blur.analysis.FieldTypeDefinition
configure, getAlternateFieldNames, getColumnName, getCustomQuery, getFamily, getFieldsForColumn, getFieldsForSubColumn, getFieldType, getName, getProperties, getSortField, 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
 

Constructor Detail

NumericFieldTypeDefinition

public NumericFieldTypeDefinition()
Method Detail

getAnalyzerForIndex

public final org.apache.lucene.analysis.Analyzer getAnalyzerForIndex(String fieldName)
Description copied from class: FieldTypeDefinition
Gets the Analyzer for indexing this should be the same for the querying unless you have a good reason.

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

getAnalyzerForQuery

public final org.apache.lucene.analysis.Analyzer getAnalyzerForQuery(String fieldName)
Description copied from class: FieldTypeDefinition
Gets the Analyzer for querying this should be the same for the indexing unless you have a good reason.

Specified by:
getAnalyzerForQuery in class FieldTypeDefinition
Parameters:
fieldName - the field name to get the analyzer, this could be the base field name or the alternative.
Returns:
the Analyzer.

checkSupportForFuzzyQuery

public final boolean checkSupportForFuzzyQuery()
Specified by:
checkSupportForFuzzyQuery in class FieldTypeDefinition

checkSupportForWildcardQuery

public final boolean checkSupportForWildcardQuery()
Specified by:
checkSupportForWildcardQuery in class FieldTypeDefinition

checkSupportForPrefixQuery

public final boolean checkSupportForPrefixQuery()
Specified by:
checkSupportForPrefixQuery in class FieldTypeDefinition

checkSupportForRegexQuery

public final boolean checkSupportForRegexQuery()
Specified by:
checkSupportForRegexQuery in class FieldTypeDefinition

isNumeric

public final boolean isNumeric()
Specified by:
isNumeric in class FieldTypeDefinition

checkSupportForCustomQuery

public final boolean checkSupportForCustomQuery()
Specified by:
checkSupportForCustomQuery in class FieldTypeDefinition

checkSupportForSorting

public boolean checkSupportForSorting()
Specified by:
checkSupportForSorting in class FieldTypeDefinition

getNewRangeQuery

public abstract org.apache.lucene.search.Query getNewRangeQuery(String field,
                                                                String part1,
                                                                String part2,
                                                                boolean startInclusive,
                                                                boolean endInclusive)


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