public class NumericConfig extends Object
NumericRangeQuerys.NumericRangeQuery,
NumberFormat| Constructor and Description |
|---|
NumericConfig(int precisionStep,
NumberFormat format,
org.apache.lucene.document.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
|
org.apache.lucene.document.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(org.apache.lucene.document.NumericField.DataType type)
Sets the numeric type used to index the numeric values
|
public NumericConfig(int precisionStep,
NumberFormat format,
org.apache.lucene.document.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 org.apache.lucene.document.NumericField.DataType getType()
public void setType(org.apache.lucene.document.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-2015 Apache Software Foundation. All Rights Reserved.