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 onlyParentJoinFieldMapperper 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 classMetaJoinFieldMapper.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, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description protected MetaJoinFieldMapperclone()protected java.lang.StringcontentType()MetaJoinFieldMapper.MetaJoinFieldTypefieldType()protected voidparseCreateField(ParseContext context, java.util.List<IndexableField> fields)-
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, indexOptionToString, iterator, merge, name, parse, termVectorOptionsToString, toXContent, typeName, updateFieldType
-
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
fieldType
public MetaJoinFieldMapper.MetaJoinFieldType fieldType()
- Overrides:
fieldTypein classFieldMapper
-
clone
protected MetaJoinFieldMapper clone()
- Overrides:
clonein classFieldMapper
-
parseCreateField
protected void parseCreateField(ParseContext context, java.util.List<IndexableField> fields) throws java.io.IOException
- Specified by:
parseCreateFieldin classFieldMapper- Throws:
java.io.IOException
-
contentType
protected java.lang.String contentType()
- Specified by:
contentTypein classFieldMapper
-
-