Class PointsConfig
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.config.PointsConfig
-
public class PointsConfig extends java.lang.ObjectThis class holds the configuration used to parse numeric queries and createPointValuesqueries.- See Also:
PointValues,NumberFormat
-
-
Constructor Summary
Constructors Constructor Description PointsConfig(java.text.NumberFormat format, java.lang.Class<? extends java.lang.Number> type)Constructs aPointsConfigobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.text.NumberFormatgetNumberFormat()Returns theNumberFormatused to parse aStringtoNumberjava.lang.Class<? extends java.lang.Number>getType()Returns the numeric type used to index the numeric valuesinthashCode()voidsetNumberFormat(java.text.NumberFormat format)Sets theNumberFormatused to parse aStringtoNumbervoidsetType(java.lang.Class<? extends java.lang.Number> type)Sets the numeric type used to index the numeric values
-
-
-
Constructor Detail
-
PointsConfig
public PointsConfig(java.text.NumberFormat format, java.lang.Class<? extends java.lang.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 java.text.NumberFormat getNumberFormat()
Returns theNumberFormatused to parse aStringtoNumber- Returns:
- the
NumberFormatused to parse aStringtoNumber
-
getType
public java.lang.Class<? extends java.lang.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(java.lang.Class<? extends java.lang.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(java.text.NumberFormat format)
Sets theNumberFormatused to parse aStringtoNumber- Parameters:
format- theNumberFormatused to parse aStringtoNumber, must not benull
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-