Class ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB>
org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<VS,AB>
org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder.LeafOnly<VS,AB>
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,BaseAggregationBuilder
- Direct Known Subclasses:
AvgAggregationBuilder,CardinalityAggregationBuilder,ExtendedStatsAggregationBuilder,GeoCentroidAggregationBuilder,MaxAggregationBuilder,MedianAbsoluteDeviationAggregationBuilder,MinAggregationBuilder,PercentileRanksAggregationBuilder,PercentilesAggregationBuilder,StatsAggregationBuilder,SumAggregationBuilder,ValueCountAggregationBuilder
- Enclosing class:
- ValuesSourceAggregationBuilder<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>
public abstract static class ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>> extends ValuesSourceAggregationBuilder<VS,AB>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
configFields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
metaDataFields inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
factoriesBuilder, name -
Constructor Summary
Constructors Modifier Constructor Description protectedLeafOnly(java.lang.String name, ValuesSourceType valuesSourceType, ValueType targetValueType)protectedLeafOnly(StreamInput in, ValuesSourceType valuesSourceType)Read an aggregation from a stream that serializes its targetValueType.protectedLeafOnly(StreamInput in, ValuesSourceType valuesSourceType, ValueType targetValueType)Read an aggregation from a stream that does not serialize its targetValueType.protectedLeafOnly(ValuesSourceAggregationBuilder.LeafOnly<VS,AB> clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData) -
Method Summary
Modifier and Type Method Description ABsubAggregations(AggregatorFactories.Builder subFactories)Registers sub-factories with this factory.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
defaultValueType, doBuild, doWriteTo, doXContentBody, equals, field, field, format, format, hashCode, innerBuild, innerWriteTo, internalXContent, missing, missing, resolveConfig, resolveScriptAny, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueTypeMethods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
build, getMetaData, getWriteableName, setMetaData, subAggregation, subAggregation, toXContent, writeToMethods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, shallowCopy, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.BaseAggregationBuilder
getType
-
Constructor Details
-
LeafOnly
protected LeafOnly(java.lang.String name, ValuesSourceType valuesSourceType, ValueType targetValueType) -
LeafOnly
protected LeafOnly(ValuesSourceAggregationBuilder.LeafOnly<VS,AB> clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData) -
LeafOnly
protected LeafOnly(StreamInput in, ValuesSourceType valuesSourceType, ValueType targetValueType) throws java.io.IOExceptionRead an aggregation from a stream that does not serialize its targetValueType. This should be used by most subclasses.- Throws:
java.io.IOException
-
LeafOnly
Read an aggregation from a stream that serializes its targetValueType. This should only be used by subclasses that overrideValuesSourceAggregationBuilder.serializeTargetValueType(Version)to return true.- Throws:
java.io.IOException
-
-
Method Details
-
subAggregations
Description copied from class:AbstractAggregationBuilderRegisters sub-factories with this factory. The sub-factory will be responsible for the creation of sub-aggregators under the aggregator created by this factory.- Specified by:
subAggregationsin interfaceBaseAggregationBuilder- Overrides:
subAggregationsin classAbstractAggregationBuilder<AB extends ValuesSourceAggregationBuilder<VS,AB>>- Parameters:
subFactories- The sub-factories- Returns:
- this factory (fluent interface)
-