Class SearchFieldDataType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<SearchFieldDataType>
com.azure.search.documents.indexes.models.SearchFieldDataType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class SearchFieldDataType
extends com.azure.core.util.ExpandableStringEnum<SearchFieldDataType>
Defines the data type of a field in a search index.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SearchFieldDataTypeIndicates that a field contains a Boolean value (true or false).static final SearchFieldDataTypeIndicates that a field contains a 8-bit unsigned integer.static final SearchFieldDataTypeIndicates that a field contains one or more complex objects that in turn have sub-fields of other types.static final SearchFieldDataTypeIndicates that a field contains a date/time value, including timezone information.static final SearchFieldDataTypeIndicates that a field contains an IEEE double-precision floating point number.static final SearchFieldDataTypeIndicates that a field contains a geo-location in terms of longitude and latitude.static final SearchFieldDataTypeIndicates that a field contains a half-precision floating point number.static final SearchFieldDataTypeIndicates that a field contains a 16-bit signed integer.static final SearchFieldDataTypeIndicates that a field contains a 32-bit signed integer.static final SearchFieldDataTypeIndicates that a field contains a 64-bit signed integer.static final SearchFieldDataTypeIndicates that a field contains a 8-bit signed integer.static final SearchFieldDataTypeIndicates that a field contains a single-precision floating point number.static final SearchFieldDataTypeIndicates that a field contains a string. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchFieldDataTypecollection(SearchFieldDataType dataType) Returns a collection of a specific SearchFieldDataType.static SearchFieldDataTypefromString(String name) Creates or finds a SearchFieldDataType from its string representation.static Collection<SearchFieldDataType> values()Gets known SearchFieldDataType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
STRING
Indicates that a field contains a string. -
INT32
Indicates that a field contains a 32-bit signed integer. -
INT64
Indicates that a field contains a 64-bit signed integer. -
DOUBLE
Indicates that a field contains an IEEE double-precision floating point number. -
BOOLEAN
Indicates that a field contains a Boolean value (true or false). -
DATE_TIME_OFFSET
Indicates that a field contains a date/time value, including timezone information. -
GEOGRAPHY_POINT
Indicates that a field contains a geo-location in terms of longitude and latitude. -
COMPLEX
Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. -
SINGLE
Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). -
HALF
Indicates that a field contains a half-precision floating point number. This is only valid when used with Collection(Edm.Half). -
INT16
Indicates that a field contains a 16-bit signed integer. This is only valid when used with Collection(Edm.Int16). -
SBYTE
Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). -
BYTE
Indicates that a field contains a 8-bit unsigned integer. This is only valid when used with Collection(Edm.Byte).
-
-
Constructor Details
-
SearchFieldDataType
Deprecated.Use thefromString(String)factory method.Creates a new instance of SearchFieldDataType value.
-
-
Method Details
-
fromString
Creates or finds a SearchFieldDataType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding SearchFieldDataType.
-
values
Gets known SearchFieldDataType values.- Returns:
- known SearchFieldDataType values.
-
collection
Returns a collection of a specific SearchFieldDataType.- Parameters:
dataType- the corresponding SearchFieldDataType- Returns:
- a Collection of the corresponding SearchFieldDataType
-
fromString(String)factory method.