NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, BaseAggregationBuilder
, MultiBucketAggregationBuilder
DateRangeAggregationBuilder
, RangeAggregationBuilder
public abstract class AbstractRangeBuilder<AB extends AbstractRangeBuilder<AB,R>,R extends RangeAggregator.Range> extends ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB> implements MultiBucketAggregationBuilder
AggregationBuilder.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
ValuesSourceAggregationBuilder.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 |
metaData
factoriesBuilder, name
EMPTY_PARAMS
config
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, writeTo
doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, shallowCopy, toString
getType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, innerBuild, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueType
protected 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.IOException
protected RangeAggregator.Range[] processRanges(java.util.function.Function<RangeAggregator.Range,RangeAggregator.Range> rangeProcessor)
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilder
innerWriteTo
in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,AB extends AbstractRangeBuilder<AB,R>>
java.io.IOException
public 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.IOException
protected 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>>