public class ChildrenAggregationBuilder extends org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder.LeafOnly<VS extends org.elasticsearch.search.aggregations.support.ValuesSource,AB extends org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<VS,AB>>
org.elasticsearch.search.aggregations.AggregationBuilder.CommonFields
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
config
metaData
Constructor and Description |
---|
ChildrenAggregationBuilder(org.elasticsearch.common.io.stream.StreamInput in)
Read from a stream.
|
ChildrenAggregationBuilder(java.lang.String name,
java.lang.String childType) |
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.common.xcontent.XContentBuilder |
doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
java.lang.String |
getType() |
protected org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,?> |
innerBuild(org.elasticsearch.search.internal.SearchContext context,
org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> config,
org.elasticsearch.search.aggregations.AggregatorFactory<?> parent,
org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
innerEquals(java.lang.Object obj) |
protected int |
innerHashCode() |
protected void |
innerWriteTo(org.elasticsearch.common.io.stream.StreamOutput out) |
static ChildrenAggregationBuilder |
parse(java.lang.String aggregationName,
org.elasticsearch.common.xcontent.XContentParser parser) |
protected org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> |
resolveConfig(org.elasticsearch.search.internal.SearchContext context) |
doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueType
build, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, 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(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
java.io.IOException
protected void innerWriteTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
innerWriteTo
in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
java.io.IOException
protected org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,?> innerBuild(org.elasticsearch.search.internal.SearchContext context, org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> config, org.elasticsearch.search.aggregations.AggregatorFactory<?> parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild
in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
java.io.IOException
protected org.elasticsearch.search.aggregations.support.ValuesSourceConfig<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals> resolveConfig(org.elasticsearch.search.internal.SearchContext context)
resolveConfig
in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
protected org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
doXContentBody
in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
java.io.IOException
public static ChildrenAggregationBuilder parse(java.lang.String aggregationName, org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
java.io.IOException
protected int innerHashCode()
innerHashCode
in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
protected boolean innerEquals(java.lang.Object obj)
innerEquals
in class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals,ChildrenAggregationBuilder>
public java.lang.String getType()