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<org.elasticsearch.index.mapper.Mapper>,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class MetaJoinFieldMapper extends org.elasticsearch.index.mapper.FieldMapperSimple 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
org.elasticsearch.index.mapper.FieldMapper.CopyTo, org.elasticsearch.index.mapper.FieldMapper.MultiFields
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MetaJoinFieldMapperclone()protected java.lang.StringcontentType()MetaJoinFieldMapper.MetaJoinFieldTypefieldType()protected voidparseCreateField(org.elasticsearch.index.mapper.ParseContext context, java.util.List<org.apache.lucene.index.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
-
-
-
-
Method Detail
-
fieldType
public MetaJoinFieldMapper.MetaJoinFieldType fieldType()
- Overrides:
fieldTypein classorg.elasticsearch.index.mapper.FieldMapper
-
clone
protected MetaJoinFieldMapper clone()
- Overrides:
clonein classorg.elasticsearch.index.mapper.FieldMapper
-
parseCreateField
protected void parseCreateField(org.elasticsearch.index.mapper.ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException- Specified by:
parseCreateFieldin classorg.elasticsearch.index.mapper.FieldMapper- Throws:
java.io.IOException
-
contentType
protected java.lang.String contentType()
- Specified by:
contentTypein classorg.elasticsearch.index.mapper.FieldMapper
-
-