Class PointsConfig
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.config.PointsConfig
-
public class PointsConfig extends java.lang.Object
This class holds the configuration used to parse numeric queries and createPointValues
queries.- See Also:
PointValues
,NumberFormat
-
-
Constructor Summary
Constructors Constructor Description PointsConfig(java.text.NumberFormat format, java.lang.Class<? extends java.lang.Number> type)
Constructs aPointsConfig
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.text.NumberFormat
getNumberFormat()
Returns theNumberFormat
used to parse aString
toNumber
java.lang.Class<? extends java.lang.Number>
getType()
Returns the numeric type used to index the numeric valuesint
hashCode()
void
setNumberFormat(java.text.NumberFormat format)
Sets theNumberFormat
used to parse aString
toNumber
void
setType(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 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 java.text.NumberFormat getNumberFormat()
Returns theNumberFormat
used to parse aString
toNumber
- Returns:
- the
NumberFormat
used to parse aString
toNumber
-
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 theNumberFormat
used to parse aString
toNumber
- Parameters:
format
- theNumberFormat
used to parse aString
toNumber
, must not benull
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-