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
ConstructorsConstructorDescriptionPointsConfig(NumberFormat format, Class<? extends Number> type) Constructs aPointsConfigobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetType()Returns the numeric type used to index the numeric valuesinthashCode()voidsetNumberFormat(NumberFormat format) voidSets the numeric type used to index the numeric values
-
Constructor Details
-
PointsConfig
Constructs aPointsConfigobject.- Parameters:
format- theNumberFormatused to parse aStringtoNumbertype- the numeric type used to index the numeric values- See Also:
-
-
Method Details
-
getNumberFormat
- Returns:
- the
NumberFormatused to parse aStringtoNumber
-
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- theNumberFormatused to parse aStringtoNumber, must not benull
-
hashCode
public int hashCode() -
equals
-