Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class TsidExtractingIdFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.MetadataFieldMapper
org.elasticsearch.index.mapper.IdFieldMapper
org.elasticsearch.index.mapper.TsidExtractingIdFieldMapper
- All Implemented Interfaces:
Iterable<Mapper>
,ToXContent
,ToXContentFragment
A mapper for the
_id
field that builds the _id
from the
_tsid
and @timestamp
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.IdFieldMapper
IdFieldMapper.AbstractIdFieldType
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
MetadataFieldMapper.Builder, MetadataFieldMapper.ConfigurableTypeParser, MetadataFieldMapper.FixedTypeParser, MetadataFieldMapper.TypeParser
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.DimensionBuilder, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.IdFieldMapper
CONTENT_TYPE, NAME, PARSER
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, deprecationLogger, hasScript, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFields, onScriptError
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createField
(DocumentParserContext context, IndexRouting.ExtractFromSource.Builder routingBuilder, org.apache.lucene.util.BytesRef tsid) static String
createId
(boolean dynamicMappersExists, IndexRouting.ExtractFromSource.Builder routingBuilder, org.apache.lucene.util.BytesRef tsid, long timestamp, byte[] suffix) static String
createId
(int routingHash, org.apache.lucene.util.BytesRef tsid, long timestamp) documentDescription
(DocumentParserContext context) Description of the document being parsed used in error messages.documentDescription
(ParsedDocument parsedDocument) Description of the document being indexed used after parsing for things like version conflicts.Build the_id
to use on requests reindexing into indices using this_id
.Methods inherited from class org.elasticsearch.index.mapper.IdFieldMapper
contentType, indexAnalyzers, standardIdField, syntheticFieldLoader
Methods inherited from class org.elasticsearch.index.mapper.MetadataFieldMapper
getMergeBuilder, parseCreateField, postParse, preParse, toXContent, updateableBoolParam
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, doValidate, doXContentBody, executeScript, fieldType, getTotalFieldsCount, hasScript, ignoreMalformed, indexScriptValues, iterator, merge, multiFields, multiFieldsIterator, name, notInMultiFields, parse, parsesArrayValue, sourcePathUsedBy, supportsParsingObject, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, simpleName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
INSTANCE
-
-
Method Details
-
createField
public static void createField(DocumentParserContext context, IndexRouting.ExtractFromSource.Builder routingBuilder, org.apache.lucene.util.BytesRef tsid) -
createId
public static String createId(int routingHash, org.apache.lucene.util.BytesRef tsid, long timestamp) -
createId
public static String createId(boolean dynamicMappersExists, IndexRouting.ExtractFromSource.Builder routingBuilder, org.apache.lucene.util.BytesRef tsid, long timestamp, byte[] suffix) -
documentDescription
Description copied from class:IdFieldMapper
Description of the document being parsed used in error messages. Not called unless there is an error.- Specified by:
documentDescription
in classIdFieldMapper
-
documentDescription
Description copied from class:IdFieldMapper
Description of the document being indexed used after parsing for things like version conflicts.- Specified by:
documentDescription
in classIdFieldMapper
-
reindexId
Description copied from class:IdFieldMapper
Build the_id
to use on requests reindexing into indices using this_id
.- Specified by:
reindexId
in classIdFieldMapper
-