Class NumericConfig
- java.lang.Object
 - 
- org.apache.lucene.queryparser.flexible.standard.config.NumericConfig
 
 
- 
public class NumericConfig extends java.lang.ObjectThis class holds the configuration used to parse numeric queries and createNumericRangeQuerys.- See Also:
 NumericRangeQuery,NumberFormat
 
- 
- 
Constructor Summary
Constructors Constructor Description NumericConfig(int precisionStep, java.text.NumberFormat format, FieldType.NumericType type)Constructs aNumericConfigobject. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.text.NumberFormatgetNumberFormat()Returns theNumberFormatused to parse aStringtoNumberintgetPrecisionStep()Returns the precision used to index the numeric valuesFieldType.NumericTypegetType()Returns the numeric type used to index the numeric valuesvoidsetNumberFormat(java.text.NumberFormat format)Sets theNumberFormatused to parse aStringtoNumbervoidsetPrecisionStep(int precisionStep)Sets the precision used to index the numeric valuesvoidsetType(FieldType.NumericType type)Sets the numeric type used to index the numeric values 
 - 
 
- 
- 
Constructor Detail
- 
NumericConfig
public NumericConfig(int precisionStep, java.text.NumberFormat format, FieldType.NumericType type)Constructs aNumericConfigobject.- Parameters:
 precisionStep- the precision used to index the numeric valuesformat- theNumberFormatused to parse aStringtoNumbertype- the numeric type used to index the numeric values- See Also:
 setPrecisionStep(int),setNumberFormat(NumberFormat),setType(org.apache.lucene.document.FieldType.NumericType)
 
 - 
 
- 
Method Detail
- 
getPrecisionStep
public int getPrecisionStep()
Returns the precision used to index the numeric values- Returns:
 - the precision used to index the numeric values
 - See Also:
 NumericRangeQuery.getPrecisionStep()
 
- 
setPrecisionStep
public void setPrecisionStep(int precisionStep)
Sets the precision used to index the numeric values- Parameters:
 precisionStep- the precision used to index the numeric values- See Also:
 NumericRangeQuery.getPrecisionStep()
 
- 
getNumberFormat
public java.text.NumberFormat getNumberFormat()
Returns theNumberFormatused to parse aStringtoNumber- Returns:
 - the 
NumberFormatused to parse aStringtoNumber 
 
- 
getType
public FieldType.NumericType getType()
Returns the numeric type used to index the numeric values- Returns:
 - the numeric type used to index the numeric values
 
 
- 
setType
public void setType(FieldType.NumericType type)
Sets the numeric type used to index the numeric values- Parameters:
 type- the numeric type used to index the numeric values
 
- 
setNumberFormat
public void setNumberFormat(java.text.NumberFormat format)
Sets theNumberFormatused to parse aStringtoNumber- Parameters:
 format- theNumberFormatused to parse aStringtoNumber, cannot benull
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -