public abstract class NumericAnalyzer.NumericParser<T extends Number> extends Object
Constructor and Description |
---|
NumericAnalyzer.NumericParser() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.lucene.document.FieldType.NumericType |
getNumericType()
Returns the
FieldType.NumericType of this parser. |
abstract int |
getValueSize()
Returns the size in bits of the numeric value.
|
abstract T |
parse(Reader input)
Reads a textual representation of a numeric using a
Reader , and parses the encoded numeric value. |
abstract 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 abstract long parseAndConvert(Reader input) throws IOException
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
.
IOException
public abstract T parse(Reader input) throws IOException
Reader
, and parses the encoded numeric value.
This is used at query time, for creating a NodeNumericRangeQuery
.
IOException
public abstract org.apache.lucene.document.FieldType.NumericType getNumericType()
FieldType.NumericType
of this parser.public abstract int getValueSize()
Copyright © 2014. All rights reserved.