public class DiversifiedAggregationBuilder extends ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>
AggregationBuilder.CommonFields
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static ParseField |
AGGREGATION_NAME_FIELD |
static int |
MAX_DOCS_PER_VALUE_DEFAULT |
static java.lang.String |
NAME |
static InternalAggregation.Type |
TYPE |
config
metaData
factoriesBuilder, name, type
EMPTY_PARAMS
Constructor and Description |
---|
DiversifiedAggregationBuilder(StreamInput in)
Read from a stream.
|
DiversifiedAggregationBuilder(java.lang.String name) |
Modifier and Type | Method and 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 |
getWriteableName()
Returns the name of the writeable object
|
protected ValuesSourceAggregatorFactory<ValuesSource,?> |
innerBuild(AggregationContext 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.
|
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.
|
config, doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, resolveConfig, 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 static final ParseField AGGREGATION_NAME_FIELD
public static final InternalAggregation.Type TYPE
public static final int MAX_DOCS_PER_VALUE_DEFAULT
public DiversifiedAggregationBuilder(java.lang.String name)
public DiversifiedAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilder
innerWriteTo
in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>
java.io.IOException
public 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(AggregationContext context, ValuesSourceConfig<ValuesSource> config, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild
in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>
java.io.IOException
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ValuesSourceAggregationBuilder<ValuesSource,DiversifiedAggregationBuilder>
java.io.IOException
protected 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 getWriteableName()
NamedWriteable