|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.queryParser.standard.config.NumericConfig
public class NumericConfig
This class holds the configuration used to parse numeric queries and create
NumericRangeQuerys.
NumericRangeQuery,
NumberFormat| Constructor Summary | |
|---|---|
NumericConfig(int precisionStep,
NumberFormat format,
NumericField.DataType type)
Constructs a NumericConfig object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
NumberFormat |
getNumberFormat()
Returns the NumberFormat used to parse a String to
Number |
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)
Sets the NumberFormat used to parse a String to
Number |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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)| Method Detail |
|---|
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
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)
NumberFormat used to parse a String to
Number
format - the NumberFormat used to parse a String to
Number, cannot be nullpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||