public abstract class ValuesSourceMetricsAggregationBuilder<B extends ValuesSourceMetricsAggregationBuilder<B>> extends MetricsAggregationBuilder<B>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
type
EMPTY_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, toXContent
getName
public B missing(Object missingValue)
protected void internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
internalXContent
in class MetricsAggregationBuilder<B extends ValuesSourceMetricsAggregationBuilder<B>>
IOException
Copyright © 2009–2016. All rights reserved.