public abstract class AbstractHistogramBuilder<AB extends AbstractHistogramBuilder<AB>> extends ValuesSourceAggregatorBuilder<ValuesSource.Numeric,AB>
ValuesSourceAggregatorBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregatorBuilder<VS,AB>>
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected ExtendedBounds |
extendedBounds |
protected long |
interval |
protected boolean |
keyed |
protected long |
minDocCount |
protected long |
offset |
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalOrder |
order |
config
factoriesBuilder, metaData, name, type
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
protected abstract AB |
createFactoryFromStream(java.lang.String name,
StreamInput in) |
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
protected XContentBuilder |
doXContentInterval(XContentBuilder builder,
ToXContent.Params params) |
ExtendedBounds |
extendedBounds() |
AB |
extendedBounds(ExtendedBounds extendedBounds) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
protected boolean |
innerEquals(java.lang.Object obj) |
protected int |
innerHashCode() |
protected AB |
innerReadFrom(java.lang.String name,
ValuesSourceType valuesSourceType,
ValueType targetValueType,
StreamInput in) |
protected void |
innerWriteTo(StreamOutput out) |
long |
interval() |
AB |
interval(long interval) |
boolean |
keyed() |
AB |
keyed(boolean keyed) |
long |
minDocCount() |
AB |
minDocCount(long minDocCount) |
long |
offset() |
AB |
offset(long offset) |
Histogram.Order |
order() |
AB |
order(Histogram.Order order) |
protected void |
writeFactoryToStream(StreamOutput out) |
config, doBuild, doEquals, doHashCode, doReadFrom, doWriteTo, field, field, format, format, innerBuild, internalXContent, missing, missing, resolveConfig, script, script, timeZone, timeZone, valueType, valueType
build, equals, getType, hashCode, readFrom, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
buildAsBytes, buildAsBytes, toString
protected long interval
protected long offset
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalOrder order
protected boolean keyed
protected long minDocCount
protected ExtendedBounds extendedBounds
public long interval()
public AB interval(long interval)
public long offset()
public AB offset(long offset)
public Histogram.Order order()
public AB order(Histogram.Order order)
public boolean keyed()
public AB keyed(boolean keyed)
public long minDocCount()
public AB minDocCount(long minDocCount)
public ExtendedBounds extendedBounds()
public AB extendedBounds(ExtendedBounds extendedBounds)
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ValuesSourceAggregatorBuilder<ValuesSource.Numeric,AB extends AbstractHistogramBuilder<AB>>
java.io.IOException
protected XContentBuilder doXContentInterval(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable<AB extends AbstractHistogramBuilder<AB>>
getWriteableName
in class AggregatorBuilder<AB extends AbstractHistogramBuilder<AB>>
protected AB innerReadFrom(java.lang.String name, ValuesSourceType valuesSourceType, ValueType targetValueType, StreamInput in) throws java.io.IOException
innerReadFrom
in class ValuesSourceAggregatorBuilder<ValuesSource.Numeric,AB extends AbstractHistogramBuilder<AB>>
java.io.IOException
protected abstract AB createFactoryFromStream(java.lang.String name, StreamInput in) throws java.io.IOException
java.io.IOException
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
innerWriteTo
in class ValuesSourceAggregatorBuilder<ValuesSource.Numeric,AB extends AbstractHistogramBuilder<AB>>
java.io.IOException
protected void writeFactoryToStream(StreamOutput out) throws java.io.IOException
java.io.IOException
protected int innerHashCode()
innerHashCode
in class ValuesSourceAggregatorBuilder<ValuesSource.Numeric,AB extends AbstractHistogramBuilder<AB>>
protected boolean innerEquals(java.lang.Object obj)
innerEquals
in class ValuesSourceAggregatorBuilder<ValuesSource.Numeric,AB extends AbstractHistogramBuilder<AB>>