public class IntNumericAnalyzer.IntNumericParser extends NumericAnalyzer.NumericParser<Integer>
Constructor and Description |
---|
IntNumericAnalyzer.IntNumericParser() |
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.
|
Integer |
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 long parseAndConvert(Reader input) throws IOException
NumericAnalyzer.NumericParser
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).
This is used at index time, in NumericTokenizer
.
parseAndConvert
in class NumericAnalyzer.NumericParser<Integer>
IOException
public Integer parse(Reader input) throws IOException
NumericAnalyzer.NumericParser
Reader
, and parses the encoded numeric value.
This is used at query time, for creating a NodeNumericRangeQuery
.
parse
in class NumericAnalyzer.NumericParser<Integer>
IOException
public org.apache.lucene.document.FieldType.NumericType getNumericType()
NumericAnalyzer.NumericParser
FieldType.NumericType
of this parser.getNumericType
in class NumericAnalyzer.NumericParser<Integer>
public int getValueSize()
NumericAnalyzer.NumericParser
getValueSize
in class NumericAnalyzer.NumericParser<Integer>
Copyright © 2014. All rights reserved.