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 createPointValues
queries.- See Also:
PointValues
,NumberFormat
-
-
Constructor Summary
Constructors Constructor Description PointsConfig(NumberFormat format, Class<? extends Number> type)
Constructs aPointsConfig
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
NumberFormat
getNumberFormat()
Class<? extends Number>
getType()
Returns the numeric type used to index the numeric valuesint
hashCode()
void
setNumberFormat(NumberFormat format)
void
setType(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 aPointsConfig
object.- Parameters:
format
- theNumberFormat
used to parse aString
toNumber
type
- the numeric type used to index the numeric values- See Also:
setNumberFormat(NumberFormat)
-
-
Method Detail
-
getNumberFormat
public NumberFormat getNumberFormat()
- Returns:
- the
NumberFormat
used to parse aString
toNumber
-
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
- theNumberFormat
used to parse aString
toNumber
, must not benull
-
-