Class PointsConfig
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.config.PointsConfig
-
public class PointsConfig extends Object
This class holds the configuration used to parse numeric queries and createPointValuesqueries.- See Also:
PointValues,NumberFormat
-
-
Constructor Summary
Constructors Constructor Description PointsConfig(NumberFormat format, Class<? extends Number> type)Constructs aPointsConfigobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)NumberFormatgetNumberFormat()Class<? extends Number>getType()Returns the numeric type used to index the numeric valuesinthashCode()voidsetNumberFormat(NumberFormat format)voidsetType(Class<? extends Number> type)Sets the numeric type used to index the numeric values
-
-
-
Constructor Detail
-
PointsConfig
public PointsConfig(NumberFormat format, Class<? extends Number> type)
Constructs aPointsConfigobject.- Parameters:
format- theNumberFormatused to parse aStringtoNumbertype- the numeric type used to index the numeric values- See Also:
setNumberFormat(NumberFormat)
-
-
Method Detail
-
getNumberFormat
public NumberFormat getNumberFormat()
- Returns:
- the
NumberFormatused to parse aStringtoNumber
-
getType
public Class<? extends Number> getType()
Returns the numeric type used to index the numeric values- Returns:
- the numeric type used to index the numeric values
-
setType
public void setType(Class<? extends Number> type)
Sets the numeric type used to index the numeric values- Parameters:
type- the numeric type used to index the numeric values
-
setNumberFormat
public void setNumberFormat(NumberFormat format)
- Parameters:
format- theNumberFormatused to parse aStringtoNumber, must not benull
-
-