public class DoubleNumericAnalyzer.DoubleNumericParser extends NumericAnalyzer.NumericParser<Double>
| Constructor and Description |
|---|
DoubleNumericAnalyzer.DoubleNumericParser() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.document.FieldType.NumericType |
getNumericType()
Returns the
FieldType.NumericType of this parser. |
int |
getValueSize()
Returns the size in bits of the numeric value.
|
Double |
parse(Reader input)
Reads a textual representation of a numeric using a
Reader, and parses the encoded numeric value. |
long |
parseAndConvert(Reader input)
Reads a textual representation of a numeric using a
Reader, parses the encoded numeric value and convert the
numeric value to a sortable signed int or long (in the case of a float or
double). |
public DoubleNumericAnalyzer.DoubleNumericParser()
public long parseAndConvert(Reader input) throws IOException
NumericAnalyzer.NumericParserReader, parses the encoded numeric value and convert the
numeric value to a sortable signed int or long (in the case of a float or
double).
This is used at index time, in NumericTokenizer.
parseAndConvert in class NumericAnalyzer.NumericParser<Double>IOExceptionpublic Double parse(Reader input) throws IOException
NumericAnalyzer.NumericParserReader, and parses the encoded numeric value.
This is used at query time, for creating a NodeNumericRangeQuery.
parse in class NumericAnalyzer.NumericParser<Double>IOExceptionpublic org.apache.lucene.document.FieldType.NumericType getNumericType()
NumericAnalyzer.NumericParserFieldType.NumericType of this parser.getNumericType in class NumericAnalyzer.NumericParser<Double>public int getValueSize()
NumericAnalyzer.NumericParsergetValueSize in class NumericAnalyzer.NumericParser<Double>Copyright © 2014. All rights reserved.