Package org.opensearch.join.mapper
Class ParentIdFieldMapper
java.lang.Object
org.opensearch.index.mapper.Mapper
org.opensearch.index.mapper.FieldMapper
org.opensearch.join.mapper.ParentIdFieldMapper
- All Implemented Interfaces:
Cloneable,Iterable<Mapper>,ToXContent,ToXContentFragment
A field mapper used internally by the
ParentJoinFieldMapper to index
the value that link documents in the index (parent _id or _id if the document is a parent).-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFieldsNested classes/interfaces inherited from class org.opensearch.index.mapper.Mapper
Mapper.BuilderContext, Mapper.TypeParserNested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from class org.opensearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, fieldType, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFieldsFields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParentIdFieldMapper(String simpleName, String parentName, Set<String> children, FieldType fieldType, MappedFieldType mappedFieldType) -
Method Summary
Modifier and TypeMethodDescriptionprotected ParentIdFieldMapperclone()protected Stringorg.apache.lucene.search.QuerygetChildFilter(String type) Returns the children names associated with this mapper.org.apache.lucene.search.Queryorg.apache.lucene.search.QueryReturns the parent name associated with this mapper.protected voidmergeOptions(FieldMapper other, List<String> conflicts) protected voidparseCreateField(ParseContext context) Methods inherited from class org.opensearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, docValuesByDefault, doValidate, doXContentAnalyzers, doXContentBody, fieldType, indexedByDefault, indexOptionToString, iterator, merge, multiFields, name, parse, parsesArrayValue, storedByDefault, toXContent, typeName, validateMethods inherited from class org.opensearch.index.mapper.Mapper
hasIndexCreated, simpleNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
ParentIdFieldMapper
-
-
Method Details
-
clone
- Overrides:
clonein classFieldMapper
-
getParentName
Returns the parent name associated with this mapper. -
getParentFilter
public org.apache.lucene.search.Query getParentFilter() -
getChildren
Returns the children names associated with this mapper. -
getChildFilter
-
getChildrenFilter
public org.apache.lucene.search.Query getChildrenFilter() -
parseCreateField
- Specified by:
parseCreateFieldin classFieldMapper- Throws:
IOException
-
mergeOptions
- Specified by:
mergeOptionsin classFieldMapper
-
contentType
- Specified by:
contentTypein classFieldMapper
-