Class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
java.lang.Object
org.opensearch.search.aggregations.AggregationBuilder
org.opensearch.search.aggregations.AbstractAggregationBuilder<AB>
org.opensearch.search.aggregations.support.ArrayValuesSourceAggregationBuilder<AB>
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable,org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentFragment,Rewriteable<AggregationBuilder>,BaseAggregationBuilder
- Direct Known Subclasses:
ArrayValuesSourceAggregationBuilder.LeafOnly
public abstract class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
extends AbstractAggregationBuilder<AB>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.opensearch.search.aggregations.AggregationBuilder
AggregationBuilder.BucketCardinality, AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opensearch.core.ParseFieldFields inherited from class org.opensearch.search.aggregations.AbstractAggregationBuilder
metadataFields inherited from class org.opensearch.search.aggregations.AggregationBuilder
factoriesBuilder, nameFields inherited from interface org.opensearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedArrayValuesSourceAggregationBuilder(org.opensearch.core.common.io.stream.StreamInput in) protectedArrayValuesSourceAggregationBuilder(ArrayValuesSourceAggregationBuilder<AB> clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ArrayValuesSourceAggregatorFactorydoBuild(QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) protected final voiddoWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) protected abstract org.opensearch.core.xcontent.XContentBuilderdoXContentBody(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) booleanfields()Gets the field to use for this aggregation.Sets the field to use for this aggregation.format()Gets the format to use for the output of the aggregation.Sets the format to use for the output of the aggregation.inthashCode()protected abstract ArrayValuesSourceAggregatorFactoryinnerBuild(QueryShardContext queryShardContext, Map<String, ValuesSourceConfig> configs, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) protected abstract voidinnerWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Write subclass' state to the streamfinal org.opensearch.core.xcontent.XContentBuilderinternalXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) Gets the value to use when the aggregation finds a missing value in a documentmissingMap(Map<String, Object> missingMap) Sets the value to use when the aggregation finds a missing value in a documentprotected Map<String, ValuesSourceConfig> resolveConfig(QueryShardContext queryShardContext) Methods inherited from class org.opensearch.search.aggregations.AbstractAggregationBuilder
build, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeToMethods inherited from class org.opensearch.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.opensearch.search.aggregations.BaseAggregationBuilder
getTypeMethods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Field Details
-
MULTIVALUE_MODE_FIELD
public static final org.opensearch.core.ParseField MULTIVALUE_MODE_FIELD
-
-
Constructor Details
-
ArrayValuesSourceAggregationBuilder
-
ArrayValuesSourceAggregationBuilder
protected ArrayValuesSourceAggregationBuilder(ArrayValuesSourceAggregationBuilder<AB> clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) -
ArrayValuesSourceAggregationBuilder
protected ArrayValuesSourceAggregationBuilder(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
doWriteTo
protected final void doWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException - Specified by:
doWriteToin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
IOException
-
innerWriteTo
protected abstract void innerWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException Write subclass' state to the stream- Throws:
IOException
-
fields
-
fields
-
format
-
format
Gets the format to use for the output of the aggregation. -
missingMap
-
missingMap
-
doBuild
protected final ArrayValuesSourceAggregatorFactory doBuild(QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws IOException - Specified by:
doBuildin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
IOException
-
resolveConfig
-
innerBuild
protected abstract ArrayValuesSourceAggregatorFactory innerBuild(QueryShardContext queryShardContext, Map<String, ValuesSourceConfig> configs, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws IOException - Throws:
IOException
-
internalXContent
public final org.opensearch.core.xcontent.XContentBuilder internalXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
internalXContentin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
IOException
-
doXContentBody
protected abstract org.opensearch.core.xcontent.XContentBuilder doXContentBody(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
-
equals
- Overrides:
equalsin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
-