public class NumericConfig extends Object
NumericRangeQuerys.NumericRangeQuery,
NumberFormat| Constructor | Description |
|---|---|
NumericConfig(int precisionStep,
NumberFormat format,
NumericField.DataType type) |
Constructs a
NumericConfig object. |
| Modifier and Type | Method | 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
Numbertype - 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
Numberpublic 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 nullCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.