public class SamplerAggregatorBuilder extends AggregatorBuilder<SamplerAggregatorBuilder>
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SHARD_SAMPLE_SIZE |
factoriesBuilder, metaData, name, type
EMPTY_PARAMS
Constructor and Description |
---|
SamplerAggregatorBuilder(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected SamplerAggregatorFactory |
doBuild(AggregationContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
doEquals(java.lang.Object obj) |
protected int |
doHashCode() |
protected SamplerAggregatorBuilder |
doReadFrom(java.lang.String name,
StreamInput in) |
protected void |
doWriteTo(StreamOutput out) |
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
int |
shardSize()
Get the max num docs to be returned from each shard.
|
SamplerAggregatorBuilder |
shardSize(int shardSize)
Set the max num docs to be returned from each shard.
|
build, equals, getType, getWriteableName, hashCode, readFrom, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
buildAsBytes, buildAsBytes, toString
public static final int DEFAULT_SHARD_SAMPLE_SIZE
public SamplerAggregatorBuilder shardSize(int shardSize)
public int shardSize()
protected SamplerAggregatorFactory doBuild(AggregationContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
doBuild
in class AggregatorBuilder<SamplerAggregatorBuilder>
java.io.IOException
protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent
in class AggregatorBuilder<SamplerAggregatorBuilder>
java.io.IOException
protected SamplerAggregatorBuilder doReadFrom(java.lang.String name, StreamInput in) throws java.io.IOException
doReadFrom
in class AggregatorBuilder<SamplerAggregatorBuilder>
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AggregatorBuilder<SamplerAggregatorBuilder>
java.io.IOException
protected int doHashCode()
doHashCode
in class AggregatorBuilder<SamplerAggregatorBuilder>
protected boolean doEquals(java.lang.Object obj)
doEquals
in class AggregatorBuilder<SamplerAggregatorBuilder>