Package org.elasticsearch.join.mapper
Class MetaJoinFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.join.mapper.MetaJoinFieldMapper
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,ToXContent
,ToXContentFragment
public class MetaJoinFieldMapper extends FieldMapper
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 Classes Modifier and Type Class Description static class
MetaJoinFieldMapper.MetaJoinFieldType
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFields
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext, Mapper.TypeParser
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, fieldType, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFields
-
Method Summary
Modifier and Type Method Description protected MetaJoinFieldMapper
clone()
protected java.lang.String
contentType()
MetaJoinFieldMapper.MetaJoinFieldType
fieldType()
protected void
mergeOptions(FieldMapper other, java.util.List<java.lang.String> conflicts)
protected void
parseCreateField(ParseContext context)
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, docValuesByDefault, doValidate, doXContentAnalyzers, doXContentBody, indexedByDefault, indexOptionToString, iterator, merge, multiFields, name, parse, parsesArrayValue, storedByDefault, toXContent, typeName, validate
-
Method Details
-
fieldType
- Overrides:
fieldType
in classFieldMapper
-
clone
- Overrides:
clone
in classFieldMapper
-
mergeOptions
- Specified by:
mergeOptions
in classFieldMapper
-
parseCreateField
- Specified by:
parseCreateField
in classFieldMapper
- Throws:
java.io.IOException
-
contentType
protected java.lang.String contentType()- Specified by:
contentType
in classFieldMapper
-