Module org.elasticsearch.server
Class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>>
java.lang.Object
org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder<AB>
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentFragment
- Direct Known Subclasses:
- DateHistogramValuesSourceBuilder,- GeoTileGridValuesSourceBuilder,- HistogramValuesSourceBuilder,- TermsValuesSourceBuilder
public abstract class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>>
extends Object
implements Writeable, ToXContentFragment
A 
ValuesSource builder for CompositeAggregationBuilder- 
Nested Class SummaryNested 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 SummaryFieldsFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Method SummaryModifier and TypeMethodDescriptionbuild(AggregationContext context) protected abstract voiddoXContentBody(XContentBuilder builder, ToXContent.Params params) booleanfield()Gets the field to use for this sourceSets the field to use for this sourceformat()Gets the format to use for the output of the aggregation.Sets the format to use for the output of the aggregation.protected abstract ValuesSourceTypeinthashCode()protected abstract CompositeValuesSourceConfiginnerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) Actually build the values source and its associated configuration.protected abstract voidinnerWriteTo(StreamOutput out) booleanFalse if documents with missing values are ignored, otherwise missing values are represented by an explicit `null` value.missingBucket(boolean missingBucket) Iftruean explicitnullbucket will represent documents with missing values.TheMissingOrderpolicy used for ordering missing values.missingOrder(String missingOrder) Sets theMissingOrderpolicy to use for ordering missing values.missingOrder(MissingOrder missingOrder) Sets theMissingOrderpolicy to use for ordering missing values.name()order()Gets theSortOrderto use to sort values produced this sourceSets theSortOrderto use to sort values produced this sourceSets theSortOrderto use to sort values produced this sourcescript()Gets the script to use for this sourceSets the script to use for this sourceprotected ZoneIdtimeZone()The time zone for this value source.final XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) Gets theValueTypefor the value produced by this sourceuserValuetypeHint(ValueType valueType) Sets theValueTypefor the value produced by this sourcefinal voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
name
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
innerWriteTo- Throws:
- IOException
 
- 
doXContentBodyprotected abstract void doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
- IOException
 
- 
toXContentpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
hashCodepublic int hashCode()
- 
equals
- 
name
- 
fieldSets the field to use for this source
- 
fieldGets the field to use for this source
- 
scriptSets the script to use for this source
- 
scriptGets the script to use for this source
- 
userValuetypeHintSets theValueTypefor the value produced by this source
- 
userValuetypeHintGets theValueTypefor the value produced by this source
- 
missingBucketIftruean explicitnullbucket will represent documents with missing values.
- 
missingBucketpublic boolean missingBucket()False if documents with missing values are ignored, otherwise missing values are represented by an explicit `null` value.
- 
missingOrderSets theMissingOrderpolicy to use for ordering missing values.- Parameters:
- missingOrder- One of "first", "last" or "default".
 
- 
missingOrderSets theMissingOrderpolicy to use for ordering missing values.
- 
missingOrderTheMissingOrderpolicy used for ordering missing values.
- 
orderSets theSortOrderto use to sort values produced this source
- 
orderSets theSortOrderto use to sort values produced this source
- 
orderGets theSortOrderto use to sort values produced this source
- 
formatSets the format to use for the output of the aggregation.
- 
formatGets the format to use for the output of the aggregation.
- 
innerBuildprotected abstract CompositeValuesSourceConfig innerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) throws IOException Actually build the values source and its associated configuration.- Throws:
- IOException
 
- 
getDefaultValuesSourceType
- 
build- Throws:
- IOException
 
- 
timeZoneThe time zone for this value source. Default implementation returnsnullbecause most value source types don't support time zone.
 
-