Package org.elasticsearch.join.mapper
Class ParentJoinFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.join.mapper.ParentJoinFieldMapper
- All Implemented Interfaces:
Cloneable,Iterable<Mapper>,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
A
FieldMapper that creates hierarchical joins (parent-join) between documents in the same index.
Only one parent-join field can be defined per index.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic final classNested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.MergeValidator<T extends Object>, FieldMapper.MultiFields, FieldMapper.Parameter<T extends Object>, FieldMapper.Serializer<T extends Object>, FieldMapper.SerializerCheck<T extends Object>, FieldMapper.TypeParserNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic FieldMapper.TypeParserFields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, hasScript, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields, onScriptErrorFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParentJoinFieldMapper(String simpleName, MappedFieldType mappedFieldType, Map<String, ParentIdFieldMapper> parentIdFields, boolean eagerGlobalOrdinals, List<org.elasticsearch.join.mapper.Relations> relations) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voiddoValidate(MappingLookup mappingLookup) protected voiddoXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) iterator()voidparse(DocumentParserContext context) protected voidparseCreateField(DocumentParserContext context) Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, executeScript, hasScript, indexAnalyzers, indexScriptValues, merge, multiFields, name, notInMultiFields, parsesArrayValue, toXContent, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
simpleNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
CONTENT_TYPE
- See Also:
-
PARSER
-
-
Constructor Details
-
ParentJoinFieldMapper
protected ParentJoinFieldMapper(String simpleName, MappedFieldType mappedFieldType, Map<String, ParentIdFieldMapper> parentIdFields, boolean eagerGlobalOrdinals, List<org.elasticsearch.join.mapper.Relations> relations)
-
-
Method Details
-
contentType
- Specified by:
contentTypein classFieldMapper
-
fieldType
- Overrides:
fieldTypein classFieldMapper
-
iterator
- Specified by:
iteratorin interfaceIterable<Mapper>- Overrides:
iteratorin classFieldMapper
-
parseCreateField
- Specified by:
parseCreateFieldin classFieldMapper
-
parse
- Overrides:
parsein classFieldMapper- Throws:
IOException
-
doXContentBody
protected void doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Overrides:
doXContentBodyin classFieldMapper- Throws:
IOException
-
getMergeBuilder
- Specified by:
getMergeBuilderin classFieldMapper
-
doValidate
- Overrides:
doValidatein classFieldMapper
-