public class ParsedScriptedMetric extends ParsedAggregation implements ScriptedMetric
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedScriptedMetric() |
Modifier and Type | Method and 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() |
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName
isFragment, toXContent
public java.lang.String getType()
getType
in interface Aggregation
public java.lang.Object aggregation()
ScriptedMetric
aggregation
in interface ScriptedMetric
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
public static ParsedScriptedMetric fromXContent(XContentParser parser, java.lang.String name)