Class FieldContext

org.elasticsearch.search.aggregations.support.FieldContext

public class FieldContext extends
Used by all field data based aggregators. This determine the context of the field data the aggregators are operating in. It holds both the field names and the index field datas that are associated with them.
  • Constructor Summary

    Constructors
    Constructor
    Description
     field, IndexFieldData<?> indexFieldData, MappedFieldType fieldType)
    Constructs a field data context for the given field and its index field data
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • FieldContext

      public FieldContext( field, IndexFieldData<?> indexFieldData, MappedFieldType fieldType)
      Constructs a field data context for the given field and its index field data
      Parameters:
      field - The name of the field
      indexFieldData - The index field data of the field
  • Method Details

    • field

      public  field()
    • indexFieldData

      public IndexFieldData<?> indexFieldData()
      Returns:
      The index field datas in this context
    • fieldType

      public MappedFieldType fieldType()