Writeable, ToXContent, ToXContentFragmentpublic class HistogramValuesSourceBuilder extends CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
CompositeValuesSourceBuilder that builds a HistogramValuesSource from another numeric values source
using the provided interval.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>nameEMPTY_PARAMS| Modifier | Constructor | Description |
|---|---|---|
|
HistogramValuesSourceBuilder(java.lang.String name) |
|
protected |
HistogramValuesSourceBuilder(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig |
innerBuild(SearchContext context,
ValuesSourceConfig<?> config) |
Creates a
CompositeValuesSourceConfig for this source. |
protected boolean |
innerEquals(HistogramValuesSourceBuilder other) |
|
protected int |
innerHashCode() |
|
protected void |
innerWriteTo(StreamOutput out) |
|
double |
interval() |
Returns the interval that is set on this source
|
HistogramValuesSourceBuilder |
interval(double interval) |
Sets the interval on this source.
|
java.lang.String |
type() |
build, equals, field, field, format, format, hashCode, missing, missing, name, order, order, order, script, script, toXContent, valueType, valueType, writeToclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic HistogramValuesSourceBuilder(java.lang.String name)
protected HistogramValuesSourceBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void innerWriteTo(StreamOutput out) throws java.io.IOException
innerWriteTo in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>java.io.IOExceptionprotected void doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>java.io.IOExceptionprotected int innerHashCode()
innerHashCode in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>protected boolean innerEquals(HistogramValuesSourceBuilder other)
innerEquals in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>public java.lang.String type()
public double interval()
public HistogramValuesSourceBuilder interval(double interval)
protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig innerBuild(SearchContext context, ValuesSourceConfig<?> config) throws java.io.IOException
CompositeValuesSourceBuilderCompositeValuesSourceConfig for this source.innerBuild in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>context - The search context for this source.config - The ValuesSourceConfig for this source.java.io.IOException