Package org.opensearch.join.mapper
Class MetaJoinFieldMapper
java.lang.Object
org.opensearch.index.mapper.Mapper
org.opensearch.index.mapper.FieldMapper
org.opensearch.join.mapper.MetaJoinFieldMapper
- All Implemented Interfaces:
Cloneable,Iterable<Mapper>,ToXContent,ToXContentFragment
Simple field mapper hack to ensure that there is a one and only
ParentJoinFieldMapper per mapping.
This field mapper is not used to index or query any data, it is used as a marker in the mapping that
denotes the presence of a parent-join field and forbids the addition of any additional ones.
This class is also used to quickly retrieve the parent-join field defined in a mapping without
specifying the name of the field.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFieldsNested classes/interfaces inherited from class org.opensearch.index.mapper.Mapper
Mapper.BuilderContext, Mapper.TypeParserNested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from class org.opensearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, fieldType, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFieldsFields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionprotected MetaJoinFieldMapperclone()protected Stringprotected voidmergeOptions(FieldMapper other, List<String> conflicts) protected voidparseCreateField(ParseContext context) Methods inherited from class org.opensearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, docValuesByDefault, doValidate, doXContentAnalyzers, doXContentBody, indexedByDefault, indexOptionToString, iterator, merge, multiFields, name, parse, parsesArrayValue, storedByDefault, toXContent, typeName, validateMethods inherited from class org.opensearch.index.mapper.Mapper
hasIndexCreated, simpleNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
Method Details
-
fieldType
- Overrides:
fieldTypein classFieldMapper
-
clone
- Overrides:
clonein classFieldMapper
-
mergeOptions
- Specified by:
mergeOptionsin classFieldMapper
-
parseCreateField
- Specified by:
parseCreateFieldin classFieldMapper- Throws:
IOException
-
contentType
- Specified by:
contentTypein classFieldMapper
-