Class PointsConfig
java.lang.Object
org.apache.lucene.queryparser.flexible.standard.config.PointsConfig
This class holds the configuration used to parse numeric queries and create
PointValues
queries.- See Also:
-
Constructor Summary
ConstructorDescriptionPointsConfig
(NumberFormat format, Class<? extends Number> type) Constructs aPointsConfig
object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
Returns the numeric type used to index the numeric valuesint
hashCode()
void
setNumberFormat
(NumberFormat format) void
Sets the numeric type used to index the numeric values
-
Constructor Details
-
PointsConfig
Constructs aPointsConfig
object.- Parameters:
format
- theNumberFormat
used to parse aString
toNumber
type
- the numeric type used to index the numeric values- See Also:
-
-
Method Details
-
getNumberFormat
- Returns:
- the
NumberFormat
used to parse aString
toNumber
-
getType
Returns the numeric type used to index the numeric values- Returns:
- the numeric type used to index the numeric values
-
setType
Sets the numeric type used to index the numeric values- Parameters:
type
- the numeric type used to index the numeric values
-
setNumberFormat
- Parameters:
format
- theNumberFormat
used to parse aString
toNumber
, must not benull
-
hashCode
public int hashCode() -
equals
-