Package org.opensearch.join.aggregations
Class ChildrenAggregationBuilder
- java.lang.Object
-
- org.opensearch.search.aggregations.AggregationBuilder
-
- org.opensearch.search.aggregations.AbstractAggregationBuilder<AB>
-
- org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
- org.opensearch.join.aggregations.ChildrenAggregationBuilder
-
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,Rewriteable<AggregationBuilder>,BaseAggregationBuilder
public class ChildrenAggregationBuilder extends ValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<AB>>
-
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.AggregationBuilder
AggregationBuilder.BucketCardinality, AggregationBuilder.CommonFields
-
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.opensearch.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 java.lang.StringNAME-
Fields inherited from class org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder
config
-
Fields inherited from class org.opensearch.search.aggregations.AbstractAggregationBuilder
metadata
-
Fields inherited from class org.opensearch.search.aggregations.AggregationBuilder
factoriesBuilder, name
-
Fields inherited from interface org.opensearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS
-
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description ChildrenAggregationBuilder(java.lang.String name, java.lang.String childType)ChildrenAggregationBuilder(StreamInput in)Read from a stream.protectedChildrenAggregationBuilder(ChildrenAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
Method Summary
-
Methods inherited from class org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder
declareFields, declareFields, doBuild, doWriteTo, field, field, format, format, internalXContent, missing, missing, script, script, serializeTargetValueType, timeZone, timeZone, userValueTypeHint, userValueTypeHint
-
Methods inherited from class org.opensearch.search.aggregations.AbstractAggregationBuilder
build, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeTo
-
Methods inherited from class org.opensearch.search.aggregations.AggregationBuilder
buildPipelineTree, doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChildrenAggregationBuilder
public ChildrenAggregationBuilder(java.lang.String name, java.lang.String childType)- Parameters:
name- the name of this aggregationchildType- the type of children documents
-
ChildrenAggregationBuilder
protected ChildrenAggregationBuilder(ChildrenAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
ChildrenAggregationBuilder
public ChildrenAggregationBuilder(StreamInput in) throws java.io.IOException
Read from a stream.- Throws:
java.io.IOException
-
-
Method Detail
-
defaultValueSourceType
protected ValuesSourceType defaultValueSourceType()
- Specified by:
defaultValueSourceTypein classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
shallowCopy
protected AggregationBuilder shallowCopy(AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)
- Specified by:
shallowCopyin classAggregationBuilder
-
innerWriteTo
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
- Specified by:
innerWriteToin classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>- Throws:
java.io.IOException
-
bucketCardinality
public AggregationBuilder.BucketCardinality bucketCardinality()
- Specified by:
bucketCardinalityin classAggregationBuilder
-
innerBuild
protected ValuesSourceAggregatorFactory innerBuild(QueryShardContext queryShardContext, ValuesSourceConfig config, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
- Specified by:
innerBuildin classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>- Throws:
java.io.IOException
-
resolveConfig
protected ValuesSourceConfig resolveConfig(QueryShardContext queryShardContext)
- Overrides:
resolveConfigin classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
doXContentBody
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBodyin classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>- Throws:
java.io.IOException
-
parse
public static ChildrenAggregationBuilder parse(java.lang.String aggregationName, XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
getType
public java.lang.String getType()
-
getRegistryKey
protected ValuesSourceRegistry.RegistryKey<?> getRegistryKey()
- Specified by:
getRegistryKeyin classValuesSourceAggregationBuilder<ChildrenAggregationBuilder>
-
-