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 |
addPipelineAggregator(PipelineAggregationBuilder pipelineAggregatorFactory) |
AggregatorFactories |
build(SearchContext context,
AggregatorFactory<?> parent) |
int |
count() |
boolean |
equals(java.lang.Object obj) |
java.util.List<AggregationBuilder> |
getAggregatorFactories() |
java.util.List<PipelineAggregationBuilder> |
getPipelineAggregatorFactories() |
int |
hashCode() |
boolean |
mustVisitAllDocs() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public Builder()
public Builder(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public boolean mustVisitAllDocs()
public AggregatorFactories.Builder addAggregator(AggregationBuilder factory)
public AggregatorFactories.Builder addPipelineAggregator(PipelineAggregationBuilder pipelineAggregatorFactory)
public AggregatorFactories build(SearchContext context, AggregatorFactory<?> parent) throws java.io.IOException
java.io.IOException
public java.util.List<AggregationBuilder> getAggregatorFactories()
public java.util.List<PipelineAggregationBuilder> getPipelineAggregatorFactories()
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