public class NumericConfig extends Object
NumericRangeQuery
s.NumericRangeQuery
,
NumberFormat
Constructor and Description |
---|
NumericConfig(int precisionStep,
NumberFormat format,
FieldType.NumericType type)
Constructs a
NumericConfig object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
NumberFormat |
getNumberFormat()
|
int |
getPrecisionStep()
Returns the precision used to index the numeric values
|
FieldType.NumericType |
getType()
Returns the numeric type used to index the numeric values
|
void |
setNumberFormat(NumberFormat format)
|
void |
setPrecisionStep(int precisionStep)
Sets the precision used to index the numeric values
|
void |
setType(FieldType.NumericType type)
Sets the numeric type used to index the numeric values
|
public NumericConfig(int precisionStep, NumberFormat format, FieldType.NumericType type)
NumericConfig
object.precisionStep
- the precision used to index the numeric valuesformat
- the NumberFormat
used to parse a String
to
Number
type
- the numeric type used to index the numeric valuessetPrecisionStep(int)
,
setNumberFormat(NumberFormat)
,
setType(org.apache.lucene.document.FieldType.NumericType)
public int getPrecisionStep()
NumericRangeQuery.getPrecisionStep()
public void setPrecisionStep(int precisionStep)
precisionStep
- the precision used to index the numeric valuesNumericRangeQuery.getPrecisionStep()
public NumberFormat getNumberFormat()
NumberFormat
used to parse a String
to
Number
public FieldType.NumericType getType()
public void setType(FieldType.NumericType type)
type
- the numeric type used to index the numeric valuespublic void setNumberFormat(NumberFormat format)
format
- the NumberFormat
used to parse a String
to
Number
, cannot be null
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.