Module org.elasticsearch.server
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>
A 
CompositeValuesSourceBuilder that builds a HistogramValuesSource from another numeric values source
 using the provided interval.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuildernameFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoXContentBody(XContentBuilder builder, ToXContent.Params params) booleanprotected ValuesSourceTypeinthashCode()protected CompositeValuesSourceConfiginnerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) Actually build the values source and its associated configuration.protected voidinnerWriteTo(StreamOutput out) doubleinterval()Returns the interval that is set on this sourceinterval(double interval) Sets the interval on this source.static voidregister(ValuesSourceRegistry.Builder builder) type()Methods inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilderbuild, field, field, format, format, missingBucket, missingBucket, missingOrder, missingOrder, missingOrder, name, order, order, order, script, script, timeZone, toXContent, userValuetypeHint, userValuetypeHint, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
HistogramValuesSourceBuilder
- 
HistogramValuesSourceBuilder- Throws:
- IOException
 
 
- 
- 
Method Details- 
register
- 
innerWriteTo- Specified by:
- innerWriteToin class- CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
- IOException
 
- 
doXContentBody- Specified by:
- doXContentBodyin class- CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
- IOException
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
 
- 
equals- Overrides:
- equalsin class- CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
 
- 
type
- 
intervalpublic double interval()Returns the interval that is set on this source
- 
intervalSets the interval on this source.
- 
getDefaultValuesSourceType- Specified by:
- getDefaultValuesSourceTypein class- CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
 
- 
innerBuildprotected CompositeValuesSourceConfig innerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) throws IOException Description copied from class:CompositeValuesSourceBuilderActually build the values source and its associated configuration.- Specified by:
- innerBuildin class- CompositeValuesSourceBuilder<HistogramValuesSourceBuilder>
- Throws:
- IOException
 
 
-