Class FieldContext


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

      Constructors 
      Constructor Description
      FieldContext​(java.lang.String 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
      java.lang.String field()  
      MappedFieldType fieldType()  
      IndexFieldData<?> indexFieldData()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FieldContext

        public FieldContext​(java.lang.String 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 Detail

      • field

        public java.lang.String field()
      • indexFieldData

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