public enum DataType extends Enum<DataType>
Only provides values for the types we actually use. See https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html
| Enum Constant and Description |
|---|
BOOLEAN |
DATE |
DOUBLE |
FLOAT |
GEO_POINT |
INTEGER |
KEYWORD |
LONG |
OBJECT |
STRING
Deprecated.
Only used in Elasticsearch 2.x. Use TEXT or KEYWORD instead.
|
TEXT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isComposite() |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="object") public static final DataType OBJECT
@SerializedName(value="string") @Deprecated public static final DataType STRING
@SerializedName(value="text") public static final DataType TEXT
@SerializedName(value="keyword") public static final DataType KEYWORD
@SerializedName(value="long") public static final DataType LONG
@SerializedName(value="integer") public static final DataType INTEGER
@SerializedName(value="double") public static final DataType DOUBLE
@SerializedName(value="float") public static final DataType FLOAT
@SerializedName(value="date") public static final DataType DATE
@SerializedName(value="boolean") public static final DataType BOOLEAN
@SerializedName(value="geo_point") public static final DataType GEO_POINT
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType 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 boolean isComposite()
Copyright © 2006–2017 Hibernate. All rights reserved.