public class SamplerAggregationBuilder extends AbstractAggregationBuilder<SamplerAggregationBuilder>
AggregationBuilder.CommonFields
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SHARD_SAMPLE_SIZE |
static java.lang.String |
NAME |
metaData
factoriesBuilder, name
EMPTY_PARAMS
Constructor and Description |
---|
SamplerAggregationBuilder(StreamInput in)
Read from a stream.
|
SamplerAggregationBuilder(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected SamplerAggregatorFactory |
doBuild(SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
doEquals(java.lang.Object obj) |
protected int |
doHashCode() |
protected void |
doWriteTo(StreamOutput out) |
java.lang.String |
getType()
The name of the type of aggregation built by this builder.
|
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
static SamplerAggregationBuilder |
parse(java.lang.String aggregationName,
QueryParseContext context) |
int |
shardSize()
Get the max num docs to be returned from each shard.
|
SamplerAggregationBuilder |
shardSize(int shardSize)
Set the max num docs to be returned from each shard.
|
build, equals, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
getName
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final java.lang.String NAME
public static final int DEFAULT_SHARD_SAMPLE_SIZE
public SamplerAggregationBuilder(java.lang.String name)
public SamplerAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractAggregationBuilder<SamplerAggregationBuilder>
java.io.IOException
public SamplerAggregationBuilder shardSize(int shardSize)
public int shardSize()
protected SamplerAggregatorFactory doBuild(SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
doBuild
in class AbstractAggregationBuilder<SamplerAggregationBuilder>
java.io.IOException
protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent
in class AbstractAggregationBuilder<SamplerAggregationBuilder>
java.io.IOException
public static SamplerAggregationBuilder parse(java.lang.String aggregationName, QueryParseContext context) throws java.io.IOException
java.io.IOException
protected int doHashCode()
doHashCode
in class AbstractAggregationBuilder<SamplerAggregationBuilder>
protected boolean doEquals(java.lang.Object obj)
doEquals
in class AbstractAggregationBuilder<SamplerAggregationBuilder>
public java.lang.String getType()
BaseAggregationBuilder