public class SamplerAggregationBuilder extends ValuesSourceAggregationBuilder<SamplerAggregationBuilder>
Sampler
aggregation.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
type
EMPTY_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, script
setMetaData, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, toXContent
getName
public 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>
IOException
Copyright © 2009–2016. All rights reserved.