Package org.elasticsearch.index
Enum Class IndexMode
- All Implemented Interfaces:
Serializable,Comparable<IndexMode>,Constable
"Mode" that controls which behaviors and settings an index supports.
For the most part this class concentrates on validating settings and mappings. Most different behavior is controlled by forcing settings to be set or not set and by enabling extra fields in the mapping.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract MetadataFieldMapperReturn an instance of theTimeSeriesIdFieldMapperthat generates the _tsid field.static IndexModefromString(String value) abstract CompressedXContentGet default mapping for this index ornullif there is none.getName()toString()abstract voidvalidateAlias(String indexRouting, String searchRouting) Validate aliases targeting this index.abstract voidvalidateMapping(MappingLookup lookup) Validate the mapping for this index.abstract voidvalidateTimestampFieldMapping(boolean isDataStream, MappingLookup mappingLookup) validate timestamp mapping for this index.static IndexModeReturns the enum constant of this class with the specified name.static IndexMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
-
TIME_SERIES
-
-
Field Details
-
DEFAULT_TIME_SERIES_TIMESTAMP_MAPPING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
validateMapping
Validate the mapping for this index. -
validateAlias
Validate aliases targeting this index. -
validateTimestampFieldMapping
public abstract void validateTimestampFieldMapping(boolean isDataStream, MappingLookup mappingLookup) throws IOException validate timestamp mapping for this index.- Throws:
IOException
-
getDefaultMapping
Get default mapping for this index ornullif there is none. -
buildTimeSeriesIdFieldMapper
Return an instance of theTimeSeriesIdFieldMapperthat generates the _tsid field. The field mapper will be added to the list of the metadata field mappers for the index. -
fromString
-
toString
-