Package lumis.portal.bigdata
Enum DocumentTypeField.DataType
- java.lang.Object
-
- java.lang.Enum<DocumentTypeField.DataType>
-
- lumis.portal.bigdata.DocumentTypeField.DataType
-
- All Implemented Interfaces:
Serializable
,Comparable<DocumentTypeField.DataType>
- Enclosing class:
- DocumentTypeField
public static enum DocumentTypeField.DataType extends Enum<DocumentTypeField.DataType>
Available field data types.- Since:
- 8.1.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENT
Attachment
data type.BOOLEAN
Boolean data type.DATETIME
Date time data type.DOUBLE
Double data type.FLAT_OBJECT
Flat object data type.FLOAT
Float data type.GEO_POINT
Geo point data type.HTML
HTML data type.INTEGER
Integer data type.LONG
Long data type.NESTED_OBJECT
Nested object data type.STRING
String data type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentTypeField.DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DocumentTypeField.DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final DocumentTypeField.DataType STRING
String data type. Maps toString
java type.- Since:
- 8.1.0
-
BOOLEAN
public static final DocumentTypeField.DataType BOOLEAN
Boolean data type. Maps toBoolean
java type.- Since:
- 8.1.0
-
DATETIME
public static final DocumentTypeField.DataType DATETIME
Date time data type. Maps toDate
java type.- Since:
- 8.1.0
-
INTEGER
public static final DocumentTypeField.DataType INTEGER
Integer data type. Maps toInteger
java type.- Since:
- 8.1.0
-
LONG
public static final DocumentTypeField.DataType LONG
Long data type. Maps toLong
java type.- Since:
- 8.1.0
-
FLOAT
public static final DocumentTypeField.DataType FLOAT
Float data type. Maps toFloat
java type.- Since:
- 8.1.0
-
DOUBLE
public static final DocumentTypeField.DataType DOUBLE
Double data type. Maps toDouble
java type.- Since:
- 8.1.0
-
ATTACHMENT
public static final DocumentTypeField.DataType ATTACHMENT
Attachment
data type. This field is not available insearch hit documents
.- Since:
- 8.1.0
-
FLAT_OBJECT
public static final DocumentTypeField.DataType FLAT_OBJECT
Flat object data type. A field of this type allows inner fields to be indexed and searched. This kind of field does not guarantee inner field values isolation on search. Eg.:
"fullName": [ { "firstName": "John", "lastName": "Smith" }, { "firstName": "Jane", "lastName": "Doe" }, ] If a search forfirstName:Jane AND lastName:Smith
is performed, the document that has this entry will be found. Maps toMap
java type.- Since:
- 8.1.0
- See Also:
NESTED_OBJECT
-
NESTED_OBJECT
public static final DocumentTypeField.DataType NESTED_OBJECT
Nested object data type.A field of this type allows inner fields to be indexed and searched. This kind of field allow searches isolating its individual values. Eg.:
"fullName": [ { "firstName": "John", "lastName": "Smith" }, { "firstName": "Jane", "lastName": "Doe" }, ] If a search for
firstName:Jane AND lastName:Smith
is performed, the document above will be in the search results. But if thefullName
field is a nested object, theNestedObjectFilter
can be used to wrap that search filter, and in this case the document above will not be in the search results since the field values filtered are not present in a single nested object value.Maps to
Map
java type.- Since:
- 8.1.0
- See Also:
FLAT_OBJECT
-
HTML
public static final DocumentTypeField.DataType HTML
HTML data type. Maps toString
java type.- Since:
- 8.1.0
-
GEO_POINT
public static final DocumentTypeField.DataType GEO_POINT
Geo point data type. This data type is a complex object that contains two components:lat
(which is the latitude of the coordinate) andlon
(which is the longitude of the coordinate).Maps to
GeoPoint
java type.- Since:
- 9.0.0
-
-
Method Detail
-
values
public static DocumentTypeField.DataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DocumentTypeField.DataType c : DocumentTypeField.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DocumentTypeField.DataType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-