NamedWriteable, Writeable, ToXContent, ToXContentFragment, BaseAggregationBuilder, MultiBucketAggregationBuilderDateRangeAggregationBuilder, RangeAggregationBuilderpublic abstract class AbstractRangeBuilder<AB extends AbstractRangeBuilder<AB,R>,R extends RangeAggregator.Range> extends ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB> implements MultiBucketAggregationBuilder
AggregationBuilder.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>Writeable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
keyed |
|
protected InternalRange.Factory<?,?> |
rangeFactory |
|
protected java.util.List<R> |
ranges |
metaDatafactoriesBuilder, nameEMPTY_PARAMSconfig| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractRangeBuilder(java.lang.String name,
InternalRange.Factory<?,?> rangeFactory) |
|
protected |
AbstractRangeBuilder(StreamInput in,
InternalRange.Factory<?,?> rangeFactory,
Writeable.Reader<R> rangeReader) |
Read from a stream.
|
protected |
AbstractRangeBuilder(AbstractRangeBuilder<AB,R> clone,
AggregatorFactories.Builder factoriesBuilder,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
| Modifier and Type | Method | Description |
|---|---|---|
AB |
addRange(R range) |
|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
protected boolean |
innerEquals(java.lang.Object obj) |
|
protected int |
innerHashCode() |
|
protected void |
innerWriteTo(StreamOutput out) |
Write subclass's state to the stream.
|
boolean |
keyed() |
|
AB |
keyed(boolean keyed) |
|
protected RangeAggregator.Range[] |
processRanges(java.util.function.Function<RangeAggregator.Range,RangeAggregator.Range> rangeProcessor) |
Resolve any strings in the ranges so we have a number value for the from
and to of each range.
|
java.util.List<R> |
ranges() |
build, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTodoRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, shallowCopy, toStringgetTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentdoBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, innerBuild, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueTypeprotected final InternalRange.Factory<?,?> rangeFactory
protected java.util.List<R extends RangeAggregator.Range> ranges
protected boolean keyed
protected AbstractRangeBuilder(java.lang.String name,
InternalRange.Factory<?,?> rangeFactory)
protected AbstractRangeBuilder(AbstractRangeBuilder<AB,R> clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData)
protected AbstractRangeBuilder(StreamInput in, InternalRange.Factory<?,?> rangeFactory, Writeable.Reader<R> rangeReader) throws java.io.IOException
java.io.IOExceptionprotected RangeAggregator.Range[] processRanges(java.util.function.Function<RangeAggregator.Range,RangeAggregator.Range> rangeProcessor)
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilderinnerWriteTo in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB extends AbstractRangeBuilder<AB,R>>java.io.IOExceptionpublic java.util.List<R> ranges()
public AB keyed(boolean keyed)
public boolean keyed()
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB extends AbstractRangeBuilder<AB,R>>java.io.IOExceptionprotected int innerHashCode()
innerHashCode in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB extends AbstractRangeBuilder<AB,R>>protected boolean innerEquals(java.lang.Object obj)
innerEquals in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB extends AbstractRangeBuilder<AB,R>>