NamedWriteable, Writeable, ToXContent, ToXContentFragment, BaseAggregationBuilderpublic class DiversifiedAggregationBuilder extends ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>
AggregationBuilder.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>Writeable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static int |
MAX_DOCS_PER_VALUE_DEFAULT |
|
static java.lang.String |
NAME |
metaDatafactoriesBuilder, nameEMPTY_PARAMSconfig| Modifier | Constructor | Description |
|---|---|---|
|
DiversifiedAggregationBuilder(java.lang.String name) |
|
|
DiversifiedAggregationBuilder(StreamInput in) |
Read from a stream.
|
protected |
DiversifiedAggregationBuilder(DiversifiedAggregationBuilder clone,
AggregatorFactories.Builder factoriesBuilder,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
| Modifier and Type | Method | Description |
|---|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
java.lang.String |
executionHint() |
Get the execution hint.
|
DiversifiedAggregationBuilder |
executionHint(java.lang.String executionHint) |
Set the execution hint.
|
java.lang.String |
getType() |
The name of the type of aggregation built by this builder.
|
protected ValuesSourceAggregatorFactory<ValuesSource,?> |
innerBuild(SearchContext context,
ValuesSourceConfig<ValuesSource> 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.
|
int |
maxDocsPerValue() |
Get the max num docs to be returned per value.
|
DiversifiedAggregationBuilder |
maxDocsPerValue(int maxDocsPerValue) |
Set the max num docs to be returned per value.
|
static AggregationBuilder |
parse(java.lang.String aggregationName,
XContentParser parser) |
|
protected AggregationBuilder |
shallowCopy(AggregatorFactories.Builder factoriesBuilder,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Create a shallow copy of this builder and replacing
AggregationBuilder.factoriesBuilder and metaData. |
int |
shardSize() |
Get the max num docs to be returned from each shard.
|
DiversifiedAggregationBuilder |
shardSize(int shardSize) |
Set the max num docs to be returned from each shard.
|
build, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTodoRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentdoBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueTypepublic static final java.lang.String NAME
public static final int MAX_DOCS_PER_VALUE_DEFAULT
public DiversifiedAggregationBuilder(java.lang.String name)
protected DiversifiedAggregationBuilder(DiversifiedAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData)
public DiversifiedAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static AggregationBuilder parse(java.lang.String aggregationName, XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected AggregationBuilder shallowCopy(AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metaData)
AggregationBuilderAggregationBuilder.factoriesBuilder and metaData.
Used by AggregationBuilder.rewrite(QueryRewriteContext).shallowCopy in class AggregationBuilderprotected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilderinnerWriteTo in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>java.io.IOExceptionpublic DiversifiedAggregationBuilder shardSize(int shardSize)
public int shardSize()
public DiversifiedAggregationBuilder maxDocsPerValue(int maxDocsPerValue)
public int maxDocsPerValue()
public DiversifiedAggregationBuilder executionHint(java.lang.String executionHint)
public java.lang.String executionHint()
protected ValuesSourceAggregatorFactory<ValuesSource,?> innerBuild(SearchContext context, ValuesSourceConfig<ValuesSource> config, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>java.io.IOExceptionprotected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>java.io.IOExceptionprotected int innerHashCode()
innerHashCode in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>protected boolean innerEquals(java.lang.Object obj)
innerEquals in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>public java.lang.String getType()
BaseAggregationBuilder