public static class AggregatorFactories.Builder extends ToXContentToBytes implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Builder()
Create an empty builder.
|
Builder(StreamInput in)
Read from a stream.
|
Modifier and Type | Method and Description |
---|---|
AggregatorFactories.Builder |
addAggregator(AggregationBuilder factory) |
AggregatorFactories.Builder |
addAggregators(AggregatorFactories factories) |
AggregatorFactories.Builder |
addPipelineAggregator(PipelineAggregationBuilder pipelineAggregatorFactory) |
AggregatorFactories |
build(AggregationContext context,
AggregatorFactory<?> parent) |
int |
count() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
buildAsBytes, buildAsBytes, toString
public Builder()
public Builder(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public AggregatorFactories.Builder addAggregators(AggregatorFactories factories)
public AggregatorFactories.Builder addAggregator(AggregationBuilder factory)
public AggregatorFactories.Builder addPipelineAggregator(PipelineAggregationBuilder pipelineAggregatorFactory)
public AggregatorFactories build(AggregationContext context, AggregatorFactory<?> parent) throws java.io.IOException
java.io.IOException
public int count()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object