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.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested 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
config
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LeafOnly(java.lang.String name, ValuesSourceType valuesSourceType, ValueType targetValueType)
protected
LeafOnly(StreamInput in, ValuesSourceType valuesSourceType)
Read an aggregation from a stream that serializes its targetValueType.protected
LeafOnly(StreamInput in, ValuesSourceType valuesSourceType, ValueType targetValueType)
Read an aggregation from a stream that does not serialize its targetValueType.protected
LeafOnly(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 AB
subAggregations(AggregatorFactories.Builder subFactories)
Registers sub-factories with this factory.-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
doBuild, doEquals, doHashCode, doWriteTo, doXContentBody, field, field, format, format, innerBuild, innerEquals, innerHashCode, innerWriteTo, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueType
-
Methods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
build, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, toXContent, writeTo
-
Methods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
doRewrite, getName, 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
-
-
-
-
Constructor Detail
-
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.IOException
Read an aggregation from a stream that does not serialize its targetValueType. This should be used by most subclasses.- Throws:
java.io.IOException
-
LeafOnly
protected LeafOnly(StreamInput in, ValuesSourceType valuesSourceType) throws java.io.IOException
Read an aggregation from a stream that serializes its targetValueType. This should only be used by subclasses that overrideValuesSourceAggregationBuilder.serializeTargetValueType()
to return true.- Throws:
java.io.IOException
-
-
Method Detail
-
subAggregations
public final AB subAggregations(AggregatorFactories.Builder subFactories)
Description copied from class:AbstractAggregationBuilder
Registers 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:
subAggregations
in interfaceBaseAggregationBuilder
- Overrides:
subAggregations
in classAbstractAggregationBuilder<AB extends ValuesSourceAggregationBuilder<VS,AB>>
- Parameters:
subFactories
- The sub-factories- Returns:
- this factory (fluent interface)
-
-