ToXContent, ToXContentFragment, Aggregation, ScriptedMetricpublic class ParsedScriptedMetric extends ParsedAggregation implements ScriptedMetric
Aggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTYPED_KEYS_DELIMITERmetadataEMPTY_PARAMS| Constructor | Description |
|---|---|
ParsedScriptedMetric() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
aggregation() |
The result of the aggregation.
|
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
static ParsedScriptedMetric |
fromXContent(XContentParser parser,
java.lang.String name) |
|
java.lang.String |
getType() |
getMetaData, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeclareAggregationFields, getMetaData, getName, parseDouble, setName, toXContenttoXContentisFragmentpublic java.lang.String getType()
getType in interface Aggregationpublic java.lang.Object aggregation()
ScriptedMetricaggregation in interface ScriptedMetricpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ParsedAggregationjava.io.IOExceptionpublic static ParsedScriptedMetric fromXContent(XContentParser parser, java.lang.String name)