public class FilterAggregationBuilder extends AbstractAggregationBuilder<FilterAggregationBuilder>
AggregationBuilder.CommonFieldsWriteable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
metaDatafactoriesBuilder, nameEMPTY_PARAMS| Constructor and Description |
|---|
FilterAggregationBuilder(StreamInput in)
Read from a stream.
|
FilterAggregationBuilder(java.lang.String name,
QueryBuilder filter) |
| Modifier and Type | Method and Description |
|---|---|
protected AggregatorFactory<?> |
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 FilterAggregationBuilder |
parse(java.lang.String aggregationName,
QueryParseContext context) |
build, equals, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTogetNamebuildAsBytes, buildAsBytes, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public FilterAggregationBuilder(java.lang.String name,
QueryBuilder filter)
name - the name of this aggregationfilter - Set the filter to use, only documents that match this
filter will fall into the bucket defined by this
Filter aggregation.public FilterAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractAggregationBuilder<FilterAggregationBuilder>java.io.IOExceptionprotected AggregatorFactory<?> doBuild(SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
doBuild in class AbstractAggregationBuilder<FilterAggregationBuilder>java.io.IOExceptionprotected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
internalXContent in class AbstractAggregationBuilder<FilterAggregationBuilder>java.io.IOExceptionpublic static FilterAggregationBuilder parse(java.lang.String aggregationName, QueryParseContext context) throws java.io.IOException
java.io.IOExceptionprotected int doHashCode()
doHashCode in class AbstractAggregationBuilder<FilterAggregationBuilder>protected boolean doEquals(java.lang.Object obj)
doEquals in class AbstractAggregationBuilder<FilterAggregationBuilder>public java.lang.String getType()
BaseAggregationBuilder