public enum SchemaFieldType extends Enum<SchemaFieldType>
Enum Constant and Description |
---|
DATE
Indexed, not stored, not tokenized.
|
NUMBER
Indexed, not stored, tokenized, 64-bit double numeric type.
|
STRING
Indexed, not stored, not tokenized.
|
TEXT
Indexed, not stored, tokenized.
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Option<org.apache.lucene.index.IndexableField> |
createFrom(String fieldName,
org.codehaus.jackson.JsonNode jsonNode) |
static SchemaFieldType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaFieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaFieldType STRING
StringField.TYPE_NOT_STORED
for details.public static final SchemaFieldType TEXT
TextField.TYPE_NOT_STORED
for details.public static final SchemaFieldType NUMBER
DoubleField.TYPE_NOT_STORED
for details.public static final SchemaFieldType DATE
StringField.TYPE_NOT_STORED
for details.public static SchemaFieldType[] values()
for (SchemaFieldType c : SchemaFieldType.values()) System.out.println(c);
public static SchemaFieldType 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 com.atlassian.fugue.Option<org.apache.lucene.index.IndexableField> createFrom(String fieldName, org.codehaus.jackson.JsonNode jsonNode)
Copyright © 2003–2015 Atlassian. All rights reserved.