Class HistogramValuesSourceBuilder
java.lang.Object
org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
org.elasticsearch.search.aggregations.bucket.composite.HistogramValuesSourceBuilder
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class HistogramValuesSourceBuilder extends CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
A
CompositeValuesSourceBuilder that builds a HistogramValuesSource from another numeric values source
using the provided interval.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder
name -
Constructor Summary
Constructors Modifier Constructor Description HistogramValuesSourceBuilder(java.lang.String name)protectedHistogramValuesSourceBuilder(StreamInput in) -
Method Summary
Modifier and Type Method Description protected voiddoXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)booleanequals(java.lang.Object obj)inthashCode()protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfiginnerBuild(QueryShardContext queryShardContext, ValuesSourceConfig config)Creates aCompositeValuesSourceConfigfor this source.protected voidinnerWriteTo(StreamOutput out)doubleinterval()Returns the interval that is set on this sourceHistogramValuesSourceBuilderinterval(double interval)Sets the interval on this source.java.lang.Stringtype()Methods inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder
build, field, field, format, format, missingBucket, missingBucket, name, order, order, order, script, script, timeZone, toXContent, valueType, valueType, writeTo
-
Constructor Details
-
HistogramValuesSourceBuilder
public HistogramValuesSourceBuilder(java.lang.String name) -
HistogramValuesSourceBuilder
- Throws:
java.io.IOException
-
-
Method Details
-
innerWriteTo
- Specified by:
innerWriteToin classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>- Throws:
java.io.IOException
-
doXContentBody
protected void doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
doXContentBodyin classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
type
public java.lang.String type() -
interval
public double interval()Returns the interval that is set on this source -
interval
Sets the interval on this source. -
innerBuild
protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig innerBuild(QueryShardContext queryShardContext, ValuesSourceConfig config) throws java.io.IOExceptionDescription copied from class:CompositeValuesSourceBuilderCreates aCompositeValuesSourceConfigfor this source.- Specified by:
innerBuildin classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>- Parameters:
queryShardContext- The shard context for this source.config- TheValuesSourceConfigfor this source.- Throws:
java.io.IOException
-