public class HistogramValuesSourceBuilder extends CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
CompositeValuesSourceBuilder that that builds a HistogramValuesSource from another numeric values source
using the provided interval.Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsnameEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
HistogramValuesSourceBuilder(StreamInput in) |
|
HistogramValuesSourceBuilder(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig |
innerBuild(SearchContext context,
ValuesSourceConfig<?> config,
int pos,
int numPos,
org.apache.lucene.search.SortField sortField)
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, checkCanEarlyTerminate, equals, field, field, 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, int pos, int numPos, org.apache.lucene.search.SortField sortField) 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.pos - The position of this source in the composite key.numPos - The total number of positions in the composite key.sortField - The SortField of the index sort at this position or null if not present.java.io.IOException