public class ChildrenAggregationBuilder extends ValuesSourceAggregationBuilder<ValuesSource.Bytes.ParentChild,ChildrenAggregationBuilder>
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>
AggregationBuilder.CommonFields
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
config
metaData
factoriesBuilder, name, type
EMPTY_PARAMS
Constructor and Description |
---|
ChildrenAggregationBuilder(StreamInput in)
Read from a stream.
|
ChildrenAggregationBuilder(java.lang.String name,
java.lang.String childType) |
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
protected ValuesSourceAggregatorFactory<ValuesSource.Bytes.ParentChild,?> |
innerBuild(AggregationContext context,
ValuesSourceConfig<ValuesSource.Bytes.ParentChild> config,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
innerEquals(java.lang.Object obj) |
protected int |
innerHashCode() |
protected void |
innerWriteTo(StreamOutput out)
Write subclass's state to the stream.
|
static ChildrenAggregationBuilder |
parse(java.lang.String aggregationName,
QueryParseContext context) |
protected ValuesSourceConfig<ValuesSource.Bytes.ParentChild> |
resolveConfig(AggregationContext aggregationContext) |
config, doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueType
build, equals, getType, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
getName
buildAsBytes, buildAsBytes, toString
public static final java.lang.String NAME
public ChildrenAggregationBuilder(java.lang.String name, java.lang.String childType)
name
- the name of this aggregationchildType
- the type of children documentspublic ChildrenAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilder
innerWriteTo
in class ValuesSourceAggregationBuilder<ValuesSource.Bytes.ParentChild,ChildrenAggregationBuilder>
java.io.IOException
protected ValuesSourceAggregatorFactory<ValuesSource.Bytes.ParentChild,?> innerBuild(AggregationContext context, ValuesSourceConfig<ValuesSource.Bytes.ParentChild> config, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild
in class ValuesSourceAggregationBuilder<ValuesSource.Bytes.ParentChild,ChildrenAggregationBuilder>
java.io.IOException
protected ValuesSourceConfig<ValuesSource.Bytes.ParentChild> resolveConfig(AggregationContext aggregationContext)
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ValuesSourceAggregationBuilder<ValuesSource.Bytes.ParentChild,ChildrenAggregationBuilder>
java.io.IOException
public static ChildrenAggregationBuilder parse(java.lang.String aggregationName, QueryParseContext context) throws java.io.IOException
java.io.IOException
protected int innerHashCode()
innerHashCode
in class ValuesSourceAggregationBuilder<ValuesSource.Bytes.ParentChild,ChildrenAggregationBuilder>
protected boolean innerEquals(java.lang.Object obj)
innerEquals
in class ValuesSourceAggregationBuilder<ValuesSource.Bytes.ParentChild,ChildrenAggregationBuilder>
public java.lang.String getWriteableName()
NamedWriteable