Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class TimeSeriesRoutingHashFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.MetadataFieldMapper
org.elasticsearch.index.mapper.TimeSeriesRoutingHashFieldMapper
- All Implemented Interfaces:
Iterable<Mapper>,ToXContent,ToXContentFragment
Mapper for the
_ts_routing_hash field.
The field contains the routing hash, as calculated in coordinating nodes for docs in time-series indexes.
It's stored to be retrieved and added as a prefix when reconstructing the _id field in search queries.
The prefix can then used for routing Get and Delete requests (by doc id) to the right shard.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
MetadataFieldMapper.Builder, MetadataFieldMapper.ConfigurableTypeParser, MetadataFieldMapper.FixedTypeParser, MetadataFieldMapper.TypeParserNested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.BuilderParams, FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.DimensionBuilder, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>, FieldMapper.SyntheticSourceMode, FieldMapper.SyntheticSourceSupportNested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.IgnoreAbove, Mapper.SourceKeepModeNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final TimeSeriesRoutingHashFieldMapperstatic final Stringstatic final MetadataFieldMapper.TypeParserstatic DocValueFormatFields inherited from class org.elasticsearch.index.mapper.FieldMapper
builderParams, COERCE_SETTING, deprecationLogger, IGNORE_MALFORMED_SETTING, mappedFieldTypeFields inherited from class org.elasticsearch.index.mapper.Mapper
SYNTHETIC_SOURCE_KEEP_FEATURE, SYNTHETIC_SOURCE_KEEP_INDEX_SETTING, SYNTHETIC_SOURCE_KEEP_PARAMFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringstatic intstatic Stringencode(int routingId) voidpostParse(DocumentParserContext context) Called afterFieldMapper.parse(DocumentParserContext)on theRootObjectMapper.Methods inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
getMergeBuilder, parseCreateField, preParse, syntheticSourceSupport, toXContent, updateableBoolParamMethods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, doParseMultiFields, doValidate, doXContentBody, executeScript, fieldType, fullPath, getTotalFieldsCount, hasScript, ignoreMalformed, indexAnalyzers, indexScriptValues, iterator, merge, multiFields, multiFieldsIterator, notFromDynamicTemplates, notInMultiFields, parse, parsesArrayValue, sourceKeepMode, sourcePathUsedBy, supportsParsingObject, syntheticFieldLoader, throwIndexingWithScriptParam, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, getOffsetFieldName, internFieldName, leafName, supportStoringArrayOffsets, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
INSTANCE
-
PARSER
-
TS_ROUTING_HASH_DOC_VALUE_FORMAT
-
DUMMY_ENCODED_VALUE
-
-
Method Details
-
postParse
Description copied from class:MetadataFieldMapperCalled afterFieldMapper.parse(DocumentParserContext)on theRootObjectMapper.- Overrides:
postParsein classMetadataFieldMapper
-
contentType
- Specified by:
contentTypein classFieldMapper
-
encode
-
decode
-