public class GlobalAggregationBuilder extends AbstractAggregationBuilder<GlobalAggregationBuilder>
AggregationBuilder.CommonFields
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
metaData
factoriesBuilder, name, type
EMPTY_PARAMS
Constructor and Description |
---|
GlobalAggregationBuilder(StreamInput in)
Read from a stream.
|
GlobalAggregationBuilder(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected AggregatorFactory<?> |
doBuild(AggregationContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
doEquals(java.lang.Object obj) |
protected int |
doHashCode() |
protected void |
doWriteTo(StreamOutput out) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
static GlobalAggregationBuilder |
parse(java.lang.String aggregationName,
QueryParseContext context) |
build, equals, getType, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTo
getName
buildAsBytes, buildAsBytes, toString
public static final java.lang.String NAME
public GlobalAggregationBuilder(java.lang.String name)
public GlobalAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractAggregationBuilder<GlobalAggregationBuilder>
java.io.IOException
protected AggregatorFactory<?> doBuild(AggregationContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
doBuild
in class AbstractAggregationBuilder<GlobalAggregationBuilder>
java.io.IOException
protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent
in class AbstractAggregationBuilder<GlobalAggregationBuilder>
java.io.IOException
public static GlobalAggregationBuilder parse(java.lang.String aggregationName, QueryParseContext context) throws java.io.IOException
java.io.IOException
protected boolean doEquals(java.lang.Object obj)
doEquals
in class AbstractAggregationBuilder<GlobalAggregationBuilder>
protected int doHashCode()
doHashCode
in class AbstractAggregationBuilder<GlobalAggregationBuilder>
public java.lang.String getWriteableName()
NamedWriteable