Class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>>
java.lang.Object
org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder<AB>
- All Implemented Interfaces:
 Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- Direct Known Subclasses:
 DateHistogramValuesSourceBuilder,GeoTileGridValuesSourceBuilder,HistogramValuesSourceBuilder,TermsValuesSourceBuilder
public abstract class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>>
extends Object
implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
A 
ValuesSource builder for CompositeAggregationBuilder- 
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
FieldsFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS - 
Method Summary
Modifier and TypeMethodDescriptionbuild(AggregationContext context)protected abstract voiddoXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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.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.org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Gets theValueTypefor the value produced by this sourceuserValuetypeHint(ValueType valueType)Sets theValueTypefor the value produced by this sourcevoidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment 
- 
Field Details
- 
name
 
 - 
 - 
Method Details
- 
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
 writeToin interfaceWriteable- Throws:
 IOException
 - 
innerWriteTo
- Throws:
 IOException
 - 
doXContentBody
protected abstract void doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
 IOException
 - 
toXContent
public final org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
 toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
 IOException
 - 
hashCode
public int hashCode() - 
equals
 - 
name
 - 
field
Sets the field to use for this source - 
field
Gets the field to use for this source - 
script
Sets the script to use for this source - 
script
Gets the script to use for this source - 
userValuetypeHint
Sets theValueTypefor the value produced by this source - 
userValuetypeHint
Gets theValueTypefor the value produced by this source - 
missingBucket
Iftruean explicitnullbucket will represent documents with missing values. - 
missingBucket
public boolean missingBucket()False if documents with missing values are ignored, otherwise missing values are represented by an explicit `null` value. - 
order
Sets theSortOrderto use to sort values produced this source - 
order
Sets theSortOrderto use to sort values produced this source - 
order
Gets theSortOrderto use to sort values produced this source - 
format
Sets the format to use for the output of the aggregation. - 
format
Gets the format to use for the output of the aggregation. - 
innerBuild
protected abstract CompositeValuesSourceConfig innerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) throws IOExceptionActually build the values source and its associated configuration.- Throws:
 IOException
 - 
getDefaultValuesSourceType
 - 
build
- Throws:
 IOException
 - 
timeZone
The time zone for this value source. Default implementation returnsnullbecause most value source types don't support time zone. 
 -