Class MultiValuesSourceFieldConfig

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

public class MultiValuesSourceFieldConfig extends Object implements Writeable, ToXContentObject
  • Field Details

  • Constructor Details

  • Method Details

    • parserBuilder

      public static <C> ObjectParser<MultiValuesSourceFieldConfig.Builder,C> parserBuilder(boolean scriptable, boolean timezoneAware, boolean filtered, boolean heterogeneous, boolean supportsIncludesExcludes)
      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
      supportsIncludesExcludes - - allows specifying includes and excludes
      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()
    • getIncludeExclude

      public IncludeExclude getIncludeExclude()
    • 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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface 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