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
Modifier and TypeClassDescriptionstatic class
static class
static final class
Nested 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.TypeParser
Nested 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
Modifier and TypeFieldDescriptionstatic final String
static final String
static FieldMapper.TypeParser
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, hasScript, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields, onScriptError
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
ParentJoinFieldMapper
(String simpleName, MappedFieldType mappedFieldType, Map<String, ParentIdFieldMapper> parentIdFields, boolean eagerGlobalOrdinals, List<org.elasticsearch.join.mapper.Relations> relations) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected void
doValidate
(MappingLookup mappingLookup) protected void
doXContentBody
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) iterator()
void
parse
(DocumentParserContext context) protected void
parseCreateField
(DocumentParserContext context) Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, copyTo, executeScript, hasScript, indexAnalyzers, indexScriptValues, merge, multiFields, name, notInMultiFields, parsesArrayValue, toXContent, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
contentType
in classFieldMapper
-
fieldType
- Overrides:
fieldType
in classFieldMapper
-
iterator
- Specified by:
iterator
in interfaceIterable<Mapper>
- Overrides:
iterator
in classFieldMapper
-
parseCreateField
- Specified by:
parseCreateField
in classFieldMapper
-
parse
- Overrides:
parse
in classFieldMapper
- Throws:
IOException
-
doXContentBody
protected void doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Overrides:
doXContentBody
in classFieldMapper
- Throws:
IOException
-
getMergeBuilder
- Specified by:
getMergeBuilder
in classFieldMapper
-
doValidate
- Overrides:
doValidate
in classFieldMapper
-