Class HistogramValuesSourceBuilder
- java.lang.Object
-
- org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
- org.elasticsearch.search.aggregations.bucket.composite.HistogramValuesSourceBuilder
-
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
public class HistogramValuesSourceBuilder extends CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
ACompositeValuesSourceBuilder
that builds aHistogramValuesSource
from another numeric values source using the provided interval.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested 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
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description HistogramValuesSourceBuilder(java.lang.String name)
protected
HistogramValuesSourceBuilder(StreamInput in)
-
Method Summary
Modifier and Type Method Description protected void
doXContentBody(XContentBuilder builder, ToXContent.Params params)
boolean
equals(java.lang.Object obj)
int
hashCode()
protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig
innerBuild(QueryShardContext queryShardContext, ValuesSourceConfig<?> config)
Creates aCompositeValuesSourceConfig
for this source.protected void
innerWriteTo(StreamOutput out)
double
interval()
Returns the interval that is set on this sourceHistogramValuesSourceBuilder
interval(double interval)
Sets the interval on this source.java.lang.String
type()
-
Methods inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder
build, field, field, format, format, missingBucket, missingBucket, name, order, order, order, script, script, toXContent, valueType, valueType, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
HistogramValuesSourceBuilder
public HistogramValuesSourceBuilder(java.lang.String name)
-
HistogramValuesSourceBuilder
protected HistogramValuesSourceBuilder(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
innerWriteTo
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
- Specified by:
innerWriteTo
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
java.io.IOException
-
doXContentBody
protected void doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBody
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
type
public java.lang.String type()
-
interval
public double interval()
Returns the interval that is set on this source
-
interval
public HistogramValuesSourceBuilder interval(double interval)
Sets the interval on this source.
-
innerBuild
protected org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig innerBuild(QueryShardContext queryShardContext, ValuesSourceConfig<?> config) throws java.io.IOException
Description copied from class:CompositeValuesSourceBuilder
Creates aCompositeValuesSourceConfig
for this source.- Specified by:
innerBuild
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Parameters:
queryShardContext
- The shard context for this source.config
- TheValuesSourceConfig
for this source.- Throws:
java.io.IOException
-
-