Class ParentIdFieldMapper

java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.join.mapper.ParentIdFieldMapper
All Implemented Interfaces:
Cloneable, Iterable<org.elasticsearch.index.mapper.Mapper>, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public final class ParentIdFieldMapper extends org.elasticsearch.index.mapper.FieldMapper
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 Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper

    org.elasticsearch.index.mapper.FieldMapper.Builder, org.elasticsearch.index.mapper.FieldMapper.Conflicts, org.elasticsearch.index.mapper.FieldMapper.CopyTo, org.elasticsearch.index.mapper.FieldMapper.MergeValidator<T extends Object>, org.elasticsearch.index.mapper.FieldMapper.MultiFields, org.elasticsearch.index.mapper.FieldMapper.Parameter<T extends Object>, org.elasticsearch.index.mapper.FieldMapper.Serializer<T extends Object>, org.elasticsearch.index.mapper.FieldMapper.SerializerCheck<T extends Object>, org.elasticsearch.index.mapper.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

    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

    Constructors
    Modifier
    Constructor
    Description
    protected
    ParentIdFieldMapper(String name, boolean eagerGlobalOrdinals)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    org.elasticsearch.index.mapper.FieldMapper.Builder
     
    void
    indexValue(org.elasticsearch.index.mapper.DocumentParserContext context, String refId)
     
    protected void
    parseCreateField(org.elasticsearch.index.mapper.DocumentParserContext context)
     

    Methods inherited from class org.elasticsearch.index.mapper.FieldMapper

    checkIncomingMergeType, copyTo, doValidate, doXContentBody, executeScript, fieldType, hasScript, indexAnalyzers, indexScriptValues, iterator, merge, multiFields, name, notInMultiFields, parse, 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
  • Constructor Details

    • ParentIdFieldMapper

      protected ParentIdFieldMapper(String name, boolean eagerGlobalOrdinals)
  • Method Details

    • parseCreateField

      protected void parseCreateField(org.elasticsearch.index.mapper.DocumentParserContext context)
      Specified by:
      parseCreateField in class org.elasticsearch.index.mapper.FieldMapper
    • indexValue

      public void indexValue(org.elasticsearch.index.mapper.DocumentParserContext context, String refId)
    • contentType

      protected String contentType()
      Specified by:
      contentType in class org.elasticsearch.index.mapper.FieldMapper
    • getMergeBuilder

      public org.elasticsearch.index.mapper.FieldMapper.Builder getMergeBuilder()
      Specified by:
      getMergeBuilder in class org.elasticsearch.index.mapper.FieldMapper