public enum IndexField extends Enum<IndexField>
| Enum Constant and Description |
|---|
ANCESTOR_IDS |
FEATURE_CODE |
GEONAME |
GEONAME_ID |
HISTORICAL |
INDEX_NAME |
PARENT_ID |
POPULATION |
PREFERRED_NAME |
SORT_POP |
| Modifier and Type | Method and Description |
|---|---|
static int |
getBooleanIndexValue(boolean inBool)
Gets the integer value representing the provided boolean value in
the Lucene index.
|
<T> T |
getValue(org.apache.lucene.document.Document doc)
Get the value of this field as set in the given document or
null
if the field is not set or cannot be retrieved. |
String |
key() |
static IndexField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexField INDEX_NAME
public static final IndexField GEONAME
public static final IndexField GEONAME_ID
public static final IndexField PARENT_ID
public static final IndexField ANCESTOR_IDS
public static final IndexField POPULATION
public static final IndexField SORT_POP
public static final IndexField HISTORICAL
public static final IndexField FEATURE_CODE
public static final IndexField PREFERRED_NAME
public static IndexField[] values()
for (IndexField c : IndexField.values()) System.out.println(c);
public static IndexField 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 String key()
public <T> T getValue(org.apache.lucene.document.Document doc)
null
if the field is not set or cannot be retrieved. If a field has multiple values,
the value that is returned may be arbitrarily selected from one of the values. In
this instance, use the methods in Document directly to retrieve multiple values.T - the expected return typedoc - the input documentnullpublic static int getBooleanIndexValue(boolean inBool)
inBool - the boolean valueCopyright © 2012–2014 Berico Technologies. All rights reserved.