Struct rs_es::operations::search::aggregations::ScriptedMetric [] [src]

pub struct ScriptedMetric<'a> {
    // some fields omitted
}

Scripted method aggregation

Methods

impl<'a> ScriptedMetric<'a>

fn new(map_script: &'a str) -> ScriptedMetric<'a>

fn with_init_script<T: Into<&'a str>>(self, val: T) -> Self

fn with_combine_script<T: Into<&'a str>>(self, val: T) -> Self

fn with_reduce_script<T: Into<&'a str>>(self, val: T) -> Self

fn with_params<T: Into<Json>>(self, val: T) -> Self

fn with_reduce_params<T: Into<Json>>(self, val: T) -> Self

fn with_lang<T: Into<&'a str>>(self, val: T) -> Self

fn with_init_script_file<T: Into<&'a str>>(self, val: T) -> Self

fn with_init_script_id<T: Into<&'a str>>(self, val: T) -> Self

fn with_map_script_file<T: Into<&'a str>>(self, val: T) -> Self

fn with_map_script_id<T: Into<&'a str>>(self, val: T) -> Self

fn with_combine_script_file<T: Into<&'a str>>(self, val: T) -> Self

fn with_combine_script_id<T: Into<&'a str>>(self, val: T) -> Self

fn with_reduce_script_file<T: Into<&'a str>>(self, val: T) -> Self

fn with_reduce_script_id<T: Into<&'a str>>(self, val: T) -> Self

Trait Implementations

impl<'a> ToJson for ScriptedMetric<'a>

fn to_json(&self) -> Json

Derived Implementations

impl<'a> Debug for ScriptedMetric<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result