Writeable
, ToXContent
, ToXContentFragment
public class HistogramValuesSourceBuilder extends CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
CompositeValuesSourceBuilder
that builds a HistogramValuesSource
from another numeric values source
using the provided interval.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
name
EMPTY_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, writeTo
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public HistogramValuesSourceBuilder(java.lang.String name)
protected HistogramValuesSourceBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
innerWriteTo
in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
java.io.IOException
protected void doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
java.io.IOException
protected 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
CompositeValuesSourceBuilder
CompositeValuesSourceConfig
for this source.innerBuild
in class CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
context
- The search context for this source.config
- The ValuesSourceConfig
for this source.java.io.IOException