public abstract class MetricsAggregationBuilder<B extends MetricsAggregationBuilder<B>> extends AbstractAggregationBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
type
EMPTY_PARAMS
Constructor and Description |
---|
MetricsAggregationBuilder(String name,
String type) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
B |
setMetaData(Map<String,Object> metaData)
Sets the meta data to be included in the metric aggregator's response
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
getName
public B setMetaData(Map<String,Object> metaData)
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
protected abstract void internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.