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