public static enum IndexNumericFieldData.NumericType extends Enum<IndexNumericFieldData.NumericType>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
boolean |
isFloatingPoint() |
Number |
maxValue() |
Number |
minValue() |
int |
requiredBits() |
org.apache.lucene.search.SortField.Type |
sortFieldType() |
double |
toDouble(org.apache.lucene.util.BytesRef indexForm) |
abstract void |
toIndexForm(Number number,
org.apache.lucene.util.BytesRefBuilder bytes) |
long |
toLong(org.apache.lucene.util.BytesRef indexForm) |
abstract Number |
toNumber(org.apache.lucene.util.BytesRef indexForm) |
static IndexNumericFieldData.NumericType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexNumericFieldData.NumericType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
org.apache.lucene.index.TermsEnum |
wrapTermsEnum(org.apache.lucene.index.TermsEnum termsEnum) |
public static final IndexNumericFieldData.NumericType BOOLEAN
public static final IndexNumericFieldData.NumericType BYTE
public static final IndexNumericFieldData.NumericType SHORT
public static final IndexNumericFieldData.NumericType INT
public static final IndexNumericFieldData.NumericType LONG
public static final IndexNumericFieldData.NumericType FLOAT
public static final IndexNumericFieldData.NumericType DOUBLE
public static IndexNumericFieldData.NumericType[] values()
for (IndexNumericFieldData.NumericType c : IndexNumericFieldData.NumericType.values()) System.out.println(c);
public static IndexNumericFieldData.NumericType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final org.apache.lucene.search.SortField.Type sortFieldType()
public final Number minValue()
public final Number maxValue()
public final boolean isFloatingPoint()
public final int requiredBits()
public abstract void toIndexForm(Number number, org.apache.lucene.util.BytesRefBuilder bytes)
public long toLong(org.apache.lucene.util.BytesRef indexForm)
public double toDouble(org.apache.lucene.util.BytesRef indexForm)
public abstract Number toNumber(org.apache.lucene.util.BytesRef indexForm)
public final org.apache.lucene.index.TermsEnum wrapTermsEnum(org.apache.lucene.index.TermsEnum termsEnum)
Copyright © 2009–2017. All rights reserved.