public abstract class ValuesSourceMetricsAggregationBuilder<B extends ValuesSourceMetricsAggregationBuilder<B>> extends MetricsAggregationBuilder<B>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamstypeEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
ValuesSourceMetricsAggregationBuilder(String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
B |
field(String field) |
B |
format(String format) |
protected void |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
B |
missing(Object missingValue)
Configure the value to use when documents miss a value.
|
B |
script(Script script)
The script to use for this aggregation
|
setMetaData, toXContentgetNamepublic B missing(Object missingValue)
protected void internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
internalXContent in class MetricsAggregationBuilder<B extends ValuesSourceMetricsAggregationBuilder<B>>IOExceptionCopyright © 2009–2017. All rights reserved.