public class ScriptedMetricParser extends Object implements Aggregator.Parser
| Modifier and Type | Field and Description |
|---|---|
static String |
COMBINE_SCRIPT |
static ParseField |
COMBINE_SCRIPT_FIELD |
static String |
INIT_SCRIPT |
static ParseField |
INIT_SCRIPT_FIELD |
static ParseField |
LANG_FIELD |
static String |
MAP_SCRIPT |
static ParseField |
MAP_SCRIPT_FIELD |
static ParseField |
PARAMS_FIELD |
static ParseField |
REDUCE_PARAMS_FIELD |
static String |
REDUCE_SCRIPT |
static ParseField |
REDUCE_SCRIPT_FIELD |
| Constructor and Description |
|---|
ScriptedMetricParser() |
| Modifier and Type | Method and Description |
|---|---|
AggregatorFactory |
parse(String aggregationName,
XContentParser parser,
SearchContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. |
String |
type() |
public static final String INIT_SCRIPT
public static final String MAP_SCRIPT
public static final String COMBINE_SCRIPT
public static final String REDUCE_SCRIPT
public static final ParseField INIT_SCRIPT_FIELD
public static final ParseField MAP_SCRIPT_FIELD
public static final ParseField COMBINE_SCRIPT_FIELD
public static final ParseField REDUCE_SCRIPT_FIELD
public static final ParseField PARAMS_FIELD
public static final ParseField REDUCE_PARAMS_FIELD
public static final ParseField LANG_FIELD
public String type()
type in interface Aggregator.Parserpublic AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException
Aggregator.Parsernull indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).parse in interface Aggregator.ParseraggregationName - The name of the aggregationparser - The xcontent parsercontext - The search contextnull in case the aggregation should be skippedIOException - When parsing failsCopyright © 2009–2017. All rights reserved.