Class MultiValuesSourceFieldConfig

java.lang.Object
org.elasticsearch.search.aggregations.support.MultiValuesSourceFieldConfig
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class MultiValuesSourceFieldConfig extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • FILTER

      public static final org.elasticsearch.xcontent.ParseField FILTER
  • Constructor Details

  • Method Details

    • parserBuilder

      public static <C> org.elasticsearch.xcontent.ObjectParser<MultiValuesSourceFieldConfig.Builder,C> parserBuilder(boolean scriptable, boolean timezoneAware, boolean filtered, boolean heterogeneous)
      Creates a parser capable of parsing value sources in different context
      Type Parameters:
      C - - parser context
      Parameters:
      scriptable - - allows specifying script in addition to a field as a values source
      timezoneAware - - allows specifying timezone
      filtered - - allows specifying filters on the values
      heterogeneous - - allows specifying value-source specific format and user value type hint
      Returns:
      configured parser
    • getMissing

      public Object getMissing()
    • getScript

      public Script getScript()
    • getTimeZone

      public ZoneId getTimeZone()
    • getFieldName

      public String getFieldName()
    • getFilter

      public QueryBuilder getFilter()
    • getUserValueTypeHint

      public ValueType getUserValueTypeHint()
    • getFormat

      public String getFormat()
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object