public class CompositeAggregationBuilder extends AbstractAggregationBuilder<CompositeAggregationBuilder>
AggregationBuilder.CommonFieldsWriteable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ParseField |
AFTER_FIELD_NAME |
static java.lang.String |
NAME |
static ParseField |
SIZE_FIELD_NAME |
static ParseField |
SOURCES_FIELD_NAME |
metaDatafactoriesBuilder, nameEMPTY_PARAMS| Constructor and Description |
|---|
CompositeAggregationBuilder(StreamInput in) |
CompositeAggregationBuilder(java.lang.String name,
java.util.List<CompositeValuesSourceBuilder<?>> sources) |
| Modifier and Type | Method and Description |
|---|---|
CompositeAggregationBuilder |
aggregateAfter(java.util.Map<java.lang.String,java.lang.Object> afterKey)
Sets the values that indicates which composite bucket this request should "aggregate after".
|
protected AggregatorFactory<?> |
doBuild(SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subfactoriesBuilder) |
protected boolean |
doEquals(java.lang.Object obj) |
protected int |
doHashCode() |
protected void |
doWriteTo(StreamOutput out) |
java.lang.String |
getType()
The name of the type of aggregation built by this builder.
|
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
static CompositeAggregationBuilder |
parse(java.lang.String aggregationName,
XContentParser parser) |
CompositeAggregationBuilder |
size(int size)
The number of composite buckets to return.
|
java.util.List<CompositeValuesSourceBuilder<?>> |
sources()
Gets the list of
CompositeValuesSourceBuilder for this aggregation. |
build, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTodoRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public static final ParseField AFTER_FIELD_NAME
public static final ParseField SIZE_FIELD_NAME
public static final ParseField SOURCES_FIELD_NAME
public CompositeAggregationBuilder(java.lang.String name,
java.util.List<CompositeValuesSourceBuilder<?>> sources)
public CompositeAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static CompositeAggregationBuilder parse(java.lang.String aggregationName, XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractAggregationBuilder<CompositeAggregationBuilder>java.io.IOExceptionpublic java.lang.String getType()
BaseAggregationBuilderpublic java.util.List<CompositeValuesSourceBuilder<?>> sources()
CompositeValuesSourceBuilder for this aggregation.public CompositeAggregationBuilder aggregateAfter(java.util.Map<java.lang.String,java.lang.Object> afterKey)
public CompositeAggregationBuilder size(int size)
protected AggregatorFactory<?> doBuild(SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subfactoriesBuilder) throws java.io.IOException
doBuild in class AbstractAggregationBuilder<CompositeAggregationBuilder>java.io.IOExceptionprotected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent in class AbstractAggregationBuilder<CompositeAggregationBuilder>java.io.IOExceptionprotected int doHashCode()
doHashCode in class AbstractAggregationBuilder<CompositeAggregationBuilder>protected boolean doEquals(java.lang.Object obj)
doEquals in class AbstractAggregationBuilder<CompositeAggregationBuilder>