Class ChildrenAggregationBuilder

  • 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.search.aggregations.BaseAggregationBuilder

    public class ChildrenAggregationBuilder
    extends org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
    • Nested Class Summary

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

        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 class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder

        org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder.LeafOnly<VS extends org.elasticsearch.search.aggregations.support.ValuesSource,AB extends org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<VS,AB>>
      • 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 java.lang.String NAME  
      • Fields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder

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

        factoriesBuilder, name
      • Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

        EMPTY_PARAMS
      • Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder

        config
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.elasticsearch.common.xcontent.XContentBuilder doXContentBody​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
      java.lang.String getType()  
      protected org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,?> innerBuild​(org.elasticsearch.search.internal.SearchContext context, org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> config, org.elasticsearch.search.aggregations.AggregatorFactory<?> parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder)  
      protected boolean innerEquals​(java.lang.Object obj)  
      protected int innerHashCode()  
      protected void innerWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out)  
      static ChildrenAggregationBuilder parse​(java.lang.String aggregationName, org.elasticsearch.common.xcontent.XContentParser parser)  
      protected org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> resolveConfig​(org.elasticsearch.search.internal.SearchContext context)  
      protected org.elasticsearch.search.aggregations.AggregationBuilder shallowCopy​(org.elasticsearch.search.aggregations.AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData)  
      • Methods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder

        build, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
      • Methods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder

        doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

        isFragment
      • Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder

        doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueType
    • Constructor Detail

      • ChildrenAggregationBuilder

        public ChildrenAggregationBuilder​(java.lang.String name,
                                          java.lang.String childType)
        Parameters:
        name - the name of this aggregation
        childType - the type of children documents
      • ChildrenAggregationBuilder

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

        public ChildrenAggregationBuilder​(org.elasticsearch.common.io.stream.StreamInput in)
                                   throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • Method Detail

      • shallowCopy

        protected org.elasticsearch.search.aggregations.AggregationBuilder shallowCopy​(org.elasticsearch.search.aggregations.AggregatorFactories.Builder factoriesBuilder,
                                                                                       java.util.Map<java.lang.String,java.lang.Object> metaData)
        Specified by:
        shallowCopy in class org.elasticsearch.search.aggregations.AggregationBuilder
      • innerWriteTo

        protected void innerWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out)
                             throws java.io.IOException
        Specified by:
        innerWriteTo in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
        Throws:
        java.io.IOException
      • innerBuild

        protected org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,?> innerBuild​(org.elasticsearch.search.internal.SearchContext context,
                                                                                                                                                                                          org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> config,
                                                                                                                                                                                          org.elasticsearch.search.aggregations.AggregatorFactory<?> parent,
                                                                                                                                                                                          org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder)
                                                                                                                                                                                   throws java.io.IOException
        Specified by:
        innerBuild in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
        Throws:
        java.io.IOException
      • resolveConfig

        protected org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> resolveConfig​(org.elasticsearch.search.internal.SearchContext context)
        Overrides:
        resolveConfig in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
      • doXContentBody

        protected org.elasticsearch.common.xcontent.XContentBuilder doXContentBody​(org.elasticsearch.common.xcontent.XContentBuilder builder,
                                                                                   org.elasticsearch.common.xcontent.ToXContent.Params params)
                                                                            throws java.io.IOException
        Specified by:
        doXContentBody in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
        Throws:
        java.io.IOException
      • parse

        public static ChildrenAggregationBuilder parse​(java.lang.String aggregationName,
                                                       org.elasticsearch.common.xcontent.XContentParser parser)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • innerHashCode

        protected int innerHashCode()
        Specified by:
        innerHashCode in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
      • innerEquals

        protected boolean innerEquals​(java.lang.Object obj)
        Specified by:
        innerEquals in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
      • getType

        public java.lang.String getType()