Class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB>
org.elasticsearch.search.aggregations.support.ArrayValuesSourceAggregationBuilder<AB>
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,Rewriteable<AggregationBuilder>,BaseAggregationBuilder
- Direct Known Subclasses:
ArrayValuesSourceAggregationBuilder.LeafOnly
public abstract class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>> extends AbstractAggregationBuilder<AB>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArrayValuesSourceAggregationBuilder.LeafOnly<AB extends ArrayValuesSourceAggregationBuilder<AB>>Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
AggregationBuilder.BucketCardinality, AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
Fields Modifier and Type Field Description static ParseFieldMULTIVALUE_MODE_FIELDFields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
metadataFields inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
factoriesBuilder, name -
Constructor Summary
Constructors Modifier Constructor Description protectedArrayValuesSourceAggregationBuilder(java.lang.String name)protectedArrayValuesSourceAggregationBuilder(StreamInput in)protectedArrayValuesSourceAggregationBuilder(ArrayValuesSourceAggregationBuilder<AB> clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata) -
Method Summary
Modifier and Type Method Description protected ArrayValuesSourceAggregatorFactorydoBuild(QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder)protected voiddoWriteTo(StreamOutput out)protected abstract XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)booleanequals(java.lang.Object obj)java.util.List<java.lang.String>fields()Gets the field to use for this aggregation.ABfields(java.util.List<java.lang.String> fields)Sets the field to use for this aggregation.java.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 ArrayValuesSourceAggregatorFactoryinnerBuild(QueryShardContext queryShardContext, java.util.Map<java.lang.String,ValuesSourceConfig> configs, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder)protected abstract voidinnerWriteTo(StreamOutput out)Write subclass' state to the streamXContentBuilderinternalXContent(XContentBuilder builder, ToXContent.Params params)java.util.Map<java.lang.String,java.lang.Object>missingMap()Gets the value to use when the aggregation finds a missing value in a documentABmissingMap(java.util.Map<java.lang.String,java.lang.Object> missingMap)Sets the value to use when the aggregation finds a missing value in a documentprotected java.util.Map<java.lang.String,ValuesSourceConfig>resolveConfig(QueryShardContext queryShardContext)Methods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
build, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeToMethods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
bucketCardinality, buildPipelineTree, doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, shallowCopy, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.BaseAggregationBuilder
getType
-
Field Details
-
Constructor Details
-
ArrayValuesSourceAggregationBuilder
protected ArrayValuesSourceAggregationBuilder(java.lang.String name) -
ArrayValuesSourceAggregationBuilder
protected ArrayValuesSourceAggregationBuilder(ArrayValuesSourceAggregationBuilder<AB> clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata) -
ArrayValuesSourceAggregationBuilder
- Throws:
java.io.IOException
-
-
Method Details
-
doWriteTo
- Specified by:
doWriteToin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
java.io.IOException
-
innerWriteTo
Write subclass' state to the stream- Throws:
java.io.IOException
-
fields
Sets the field to use for this aggregation. -
fields
public java.util.List<java.lang.String> fields()Gets the field to use for this aggregation. -
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. -
missingMap
Sets the value to use when the aggregation finds a missing value in a document -
missingMap
public java.util.Map<java.lang.String,java.lang.Object> missingMap()Gets the value to use when the aggregation finds a missing value in a document -
doBuild
protected final ArrayValuesSourceAggregatorFactory doBuild(QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException- Specified by:
doBuildin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
java.io.IOException
-
resolveConfig
protected java.util.Map<java.lang.String,ValuesSourceConfig> resolveConfig(QueryShardContext queryShardContext) -
innerBuild
protected abstract ArrayValuesSourceAggregatorFactory innerBuild(QueryShardContext queryShardContext, java.util.Map<java.lang.String,ValuesSourceConfig> configs, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException- Throws:
java.io.IOException
-
internalXContent
public final XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
internalXContentin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
java.io.IOException
-
doXContentBody
protected abstract XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
-