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
Modifier and TypeClassDescriptionstatic interface
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.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
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
boolean
protected ValuesSourceType
int
hashCode()
protected CompositeValuesSourceConfig
innerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config)
Actually build the values source and its associated configuration.protected void
innerWriteTo(StreamOutput out)
double
interval()
Returns the interval that is set on this sourceinterval(double interval)
Sets the interval on this source.static void
register(ValuesSourceRegistry.Builder builder)
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, timeZone, toXContent, userValuetypeHint, userValuetypeHint, 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 Details
-
HistogramValuesSourceBuilder
-
HistogramValuesSourceBuilder
- Throws:
IOException
-
-
Method Details
-
register
-
innerWriteTo
- Specified by:
innerWriteTo
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
IOException
-
doXContentBody
protected void doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
doXContentBody
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
IOException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
equals
- Overrides:
equals
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
type
-
interval
public double interval()Returns the interval that is set on this source -
interval
Sets the interval on this source. -
getDefaultValuesSourceType
- Specified by:
getDefaultValuesSourceType
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
-
innerBuild
protected CompositeValuesSourceConfig innerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) throws IOExceptionDescription copied from class:CompositeValuesSourceBuilder
Actually build the values source and its associated configuration.- Specified by:
innerBuild
in classCompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
IOException
-