public abstract class MetricsAggregationBuilder<B extends MetricsAggregationBuilder<B>> extends AbstractAggregationBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamstypeEMPTY_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) |
getNamepublic B setMetaData(Map<String,Object> metaData)
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionprotected abstract void internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.