public class NumericConfig extends Object
NumericRangeQuery
s.NumericRangeQuery
,
NumberFormat
Constructor and Description |
---|
NumericConfig(int precisionStep,
NumberFormat format,
NumericField.DataType type)
Constructs a
NumericConfig object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
NumberFormat |
getNumberFormat()
|
int |
getPrecisionStep()
Returns the precision used to index the numeric values
|
NumericField.DataType |
getType()
Returns the numeric type used to index the numeric values
|
void |
setNumberFormat(NumberFormat format)
|
void |
setPrecisionStep(int precisionStep)
Sets the precision used to index the numeric values
|
void |
setType(NumericField.DataType type)
Sets the numeric type used to index the numeric values
|
public NumericConfig(int precisionStep, NumberFormat format, NumericField.DataType type)
NumericConfig
object.precisionStep
- the precision used to index the numeric valuesformat
- the NumberFormat
used to parse a String
to
Number
type
- the numeric type used to index the numeric valuessetPrecisionStep(int)
,
setNumberFormat(NumberFormat)
,
setType(org.apache.lucene.document.NumericField.DataType)
public int getPrecisionStep()
NumericRangeQuery.getPrecisionStep()
public void setPrecisionStep(int precisionStep)
precisionStep
- the precision used to index the numeric valuesNumericRangeQuery.getPrecisionStep()
public NumberFormat getNumberFormat()
NumberFormat
used to parse a String
to
Number
public NumericField.DataType getType()
public void setType(NumericField.DataType type)
type
- the numeric type used to index the numeric valuespublic void setNumberFormat(NumberFormat format)
format
- the NumberFormat
used to parse a String
to
Number
, cannot be null