Class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>

java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB>
org.elasticsearch.search.aggregations.support.ArrayValuesSourceAggregationBuilder<AB>
All Implemented Interfaces:
org.elasticsearch.common.io.stream.NamedWriteable, org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, org.elasticsearch.index.query.Rewriteable<org.elasticsearch.search.aggregations.AggregationBuilder>, org.elasticsearch.search.aggregations.BaseAggregationBuilder
Direct Known Subclasses:
ArrayValuesSourceAggregationBuilder.LeafOnly

public abstract class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
extends org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB>
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  ArrayValuesSourceAggregationBuilder.LeafOnly<AB extends ArrayValuesSourceAggregationBuilder<AB>>  

    Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilder

    org.elasticsearch.search.aggregations.AggregationBuilder.BucketCardinality, org.elasticsearch.search.aggregations.AggregationBuilder.CommonFields

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    org.elasticsearch.common.io.stream.Writeable.Reader<V extends java.lang.Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends java.lang.Object>
  • Field Summary

    Fields
    Modifier and Type Field Description
    static org.elasticsearch.common.ParseField MULTIVALUE_MODE_FIELD  

    Fields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder

    metadata

    Fields inherited from class org.elasticsearch.search.aggregations.AggregationBuilder

    DEFAULT_PREALLOCATION, factoriesBuilder, name

    Fields inherited from interface org.elasticsearch.index.query.Rewriteable

    MAX_REWRITE_ROUNDS

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected ArrayValuesSourceAggregationBuilder​(java.lang.String name)  
    protected ArrayValuesSourceAggregationBuilder​(org.elasticsearch.common.io.stream.StreamInput in)  
    protected ArrayValuesSourceAggregationBuilder​(ArrayValuesSourceAggregationBuilder<AB> clone, org.elasticsearch.search.aggregations.AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,​java.lang.Object> metadata)  
  • Method Summary

    Modifier and Type Method Description
    protected ArrayValuesSourceAggregatorFactory doBuild​(org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder)  
    protected void doWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out)  
    protected abstract org.elasticsearch.common.xcontent.XContentBuilder doXContentBody​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    boolean equals​(java.lang.Object obj)  
    java.util.List<java.lang.String> fields()
    Gets the field to use for this aggregation.
    AB fields​(java.util.List<java.lang.String> fields)
    Sets the field to use for this aggregation.
    java.lang.String format()
    Gets the format to use for the output of the aggregation.
    AB format​(java.lang.String format)
    Sets the format to use for the output of the aggregation.
    int hashCode()  
    protected abstract ArrayValuesSourceAggregatorFactory innerBuild​(org.elasticsearch.search.aggregations.support.AggregationContext context, java.util.Map<java.lang.String,​org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder)  
    protected abstract void innerWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out)
    Write subclass' state to the stream
    org.elasticsearch.common.xcontent.XContentBuilder internalXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    java.util.Map<java.lang.String,​java.lang.Object> missingMap()
    Gets the value to use when the aggregation finds a missing value in a document
    AB missingMap​(java.util.Map<java.lang.String,​java.lang.Object> missingMap)
    Sets the value to use when the aggregation finds a missing value in a document
    protected java.util.Map<java.lang.String,​org.elasticsearch.search.aggregations.support.ValuesSourceConfig> resolveConfig​(org.elasticsearch.search.aggregations.support.AggregationContext context)  

    Methods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder

    build, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeTo

    Methods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder

    bucketCardinality, buildPipelineTree, bytesToPreallocate, doRewrite, getName, getOutputFieldNames, getPipelineAggregations, getSubAggregations, rewrite, shallowCopy, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.search.aggregations.BaseAggregationBuilder

    getType

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Field Details

    • MULTIVALUE_MODE_FIELD

      public static final org.elasticsearch.common.ParseField MULTIVALUE_MODE_FIELD
  • Constructor Details

    • ArrayValuesSourceAggregationBuilder

      protected ArrayValuesSourceAggregationBuilder​(java.lang.String name)
    • ArrayValuesSourceAggregationBuilder

      protected ArrayValuesSourceAggregationBuilder​(ArrayValuesSourceAggregationBuilder<AB> clone, org.elasticsearch.search.aggregations.AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,​java.lang.Object> metadata)
    • ArrayValuesSourceAggregationBuilder

      protected ArrayValuesSourceAggregationBuilder​(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • doWriteTo

      protected final void doWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
      Specified by:
      doWriteTo in class org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
      Throws:
      java.io.IOException
    • innerWriteTo

      protected abstract void innerWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
      Write subclass' state to the stream
      Throws:
      java.io.IOException
    • fields

      public AB fields​(java.util.List<java.lang.String> fields)
      Sets the field to use for this aggregation.
    • fields

      public java.util.List<java.lang.String> fields()
      Gets the field to use for this aggregation.
    • format

      public AB format​(java.lang.String format)
      Sets the format to use for the output of the aggregation.
    • format

      public java.lang.String format()
      Gets the format to use for the output of the aggregation.
    • missingMap

      public AB missingMap​(java.util.Map<java.lang.String,​java.lang.Object> missingMap)
      Sets the value to use when the aggregation finds a missing value in a document
    • missingMap

      public java.util.Map<java.lang.String,​java.lang.Object> missingMap()
      Gets the value to use when the aggregation finds a missing value in a document
    • doBuild

      protected final ArrayValuesSourceAggregatorFactory doBuild​(org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
      Specified by:
      doBuild in class org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
      Throws:
      java.io.IOException
    • resolveConfig

      protected java.util.Map<java.lang.String,​org.elasticsearch.search.aggregations.support.ValuesSourceConfig> resolveConfig​(org.elasticsearch.search.aggregations.support.AggregationContext context)
    • innerBuild

      protected abstract ArrayValuesSourceAggregatorFactory innerBuild​(org.elasticsearch.search.aggregations.support.AggregationContext context, java.util.Map<java.lang.String,​org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
      Throws:
      java.io.IOException
    • internalXContent

      public final org.elasticsearch.common.xcontent.XContentBuilder internalXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      internalXContent in class org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
      Throws:
      java.io.IOException
    • doXContentBody

      protected abstract org.elasticsearch.common.xcontent.XContentBuilder doXContentBody​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Throws:
      java.io.IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>