public class SamplerAggregationBuilder extends ValuesSourceAggregationBuilder<SamplerAggregationBuilder>
Sampler aggregation.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamstypeEMPTY_PARAMS| Constructor and Description |
|---|
SamplerAggregationBuilder(String name)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected XContentBuilder |
doInternalXContent(XContentBuilder builder,
ToXContent.Params params) |
SamplerAggregationBuilder |
executionHint(String executionHint) |
SamplerAggregationBuilder |
maxDocsPerValue(int maxDocsPerValue) |
SamplerAggregationBuilder |
shardSize(int shardSize)
Set the max num docs to be returned from each shard.
|
field, internalXContent, missing, scriptsetMetaData, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, toXContentgetNamepublic SamplerAggregationBuilder(String name)
public SamplerAggregationBuilder shardSize(int shardSize)
public SamplerAggregationBuilder maxDocsPerValue(int maxDocsPerValue)
public SamplerAggregationBuilder executionHint(String executionHint)
protected XContentBuilder doInternalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doInternalXContent in class ValuesSourceAggregationBuilder<SamplerAggregationBuilder>IOExceptionCopyright © 2009–2017. All rights reserved.