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,HistogramValuesSourceBuilder,TermsValuesSourceBuilder
public abstract class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>> extends java.lang.Object implements Writeable, ToXContentFragment
AValuesSourcebuilder forCompositeAggregationBuilder
-
-
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 Modifier and Type Field Description protected java.lang.Stringname-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfigbuild(SearchContext context)protected abstract voiddoXContentBody(XContentBuilder builder, ToXContent.Params params)booleanequals(java.lang.Object o)java.lang.Stringfield()Gets the field to use for this sourceABfield(java.lang.String field)Sets the field to use for this sourcejava.lang.Stringformat()Gets the format to use for the output of the aggregation.ABformat(java.lang.String format)Sets the format to use for the output of the aggregation.inthashCode()protected abstract org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfiginnerBuild(SearchContext context, ValuesSourceConfig<?> config)Creates aCompositeValuesSourceConfigfor this source.protected abstract booleaninnerEquals(AB builder)protected abstract intinnerHashCode()protected abstract voidinnerWriteTo(StreamOutput out)java.lang.Objectmissing()Deprecated.ABmissing(java.lang.Object missing)Deprecated.UsemissingBucket(boolean)instead.booleanmissingBucket()False if documents with missing values are ignored, otherwise missing values are represented by an explicit `null` value.ABmissingBucket(boolean missingBucket)If true an explicit `null bucket will represent documents with missing values.java.lang.Stringname()SortOrderorder()Gets theSortOrderto use to sort values produced this sourceABorder(java.lang.String order)Sets theSortOrderto use to sort values produced this sourceABorder(SortOrder order)Sets theSortOrderto use to sort values produced this sourceScriptscript()Gets the script to use for this sourceABscript(Script script)Sets the script to use for this sourceXContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)ValueTypevalueType()Gets theValueTypefor the value produced by this sourceABvalueType(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, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
writeTo
public final void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
innerWriteTo
protected abstract void innerWriteTo(StreamOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
doXContentBody
protected abstract void doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Throws:
java.io.IOException
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
innerHashCode
protected abstract int innerHashCode()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
innerEquals
protected abstract boolean innerEquals(AB builder)
-
name
public java.lang.String name()
-
field
public AB field(java.lang.String field)
Sets the field to use for this source
-
field
public java.lang.String field()
Gets the field to use for this source
-
script
public Script script()
Gets the script to use for this source
-
valueType
public AB valueType(ValueType valueType)
Sets theValueTypefor the value produced by this source
-
missing
@Deprecated public AB missing(java.lang.Object missing)
Deprecated.UsemissingBucket(boolean)instead.Sets the value to use when the source finds a missing value in a document.
-
missing
@Deprecated public java.lang.Object missing()
Deprecated.
-
missingBucket
public AB missingBucket(boolean missingBucket)
If true an explicit `null bucket 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
public AB order(java.lang.String order)
Sets theSortOrderto use to sort values produced this source
-
order
public AB order(SortOrder order)
Sets theSortOrderto use to sort values produced this source
-
format
public AB format(java.lang.String format)
Sets the format to use for the output of the aggregation.
-
format
public java.lang.String format()
Gets the format to use for the output of the aggregation.
-
innerBuild
protected abstract org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig innerBuild(SearchContext context, ValuesSourceConfig<?> config) throws java.io.IOException
Creates aCompositeValuesSourceConfigfor this source.- Parameters:
context- The search context for this source.config- TheValuesSourceConfigfor this source.- Throws:
java.io.IOException
-
build
public final org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig build(SearchContext context) throws java.io.IOException
- Throws:
java.io.IOException
-
-