Module
ScriptedMetricAggregation
        ScriptedMetricAggregation ( name )
    
    Aggregation that keeps track and returns the minimum value among numeric values extracted from the aggregated documents. 
  | 
Method Summary
| Returns | Name | Description | 
|---|---|---|
String | _type() | The type of ejs object. For internal use only. | 
Object | combineScript(combineScript) | Sets the combine phase script.  | 
    
Object | combineScriptFile(combine_script_file) | Sets the combine_script_file.  | 
    
Object | combineScriptId(combine_script_id) | Sets the combine_script_id.  | 
    
Object | initScript(initScript) | Sets the initialization script.  | 
    
Object | initScriptFile(init_script_file) | Sets the init_script_file.  | 
    
Object | initScriptId(init_script_id) | Sets the init_script_id.  | 
    
Object | lang(language) | The script language being used. | 
Object | lang(lang) | Set the scripting language used for this aggregation.  | 
    
Object | mapScript(mapScript) | Sets the map script. This is the only required script.  | 
    
Object | mapScriptFile(map_script_file) | Sets the map_script_file.  | 
    
Object | mapScriptId(map_script_id) | Sets the map_script_id.  | 
    
Object | params(p) | Sets parameters that will be applied to the script. Overwrites any existing params. | 
Object | params(params) | Set parameters which will be passed to the init, map and combine scripts.  | 
    
Object | reduceParams(reduceParams) | Set parameters which will be passed to the reduce script.  | 
    
Object | reduceScript(reduceScript) | Sets the combine phase script.  | 
    
Object | reduceScriptFile(reduce_script_file) | Sets the reduce_script_file.  | 
    
Object | reduceScriptId(reduce_script_id) | Sets the reduce_script_id.  | 
    
String | toJSON() | Retrieves the internal   | 
    
Method Detail
combineScript
        Object combineScript ( combineScript )
    
    Sets the combine phase script. 
  | 
combineScriptFile
        Object combineScriptFile ( combine_script_file )
    
    Sets the combine_script_file. 
  | 
combineScriptId
        Object combineScriptId ( combine_script_id )
    
    Sets the combine_script_id. 
  | 
initScript
        Object initScript ( initScript )
    
    Sets the initialization script. 
  | 
initScriptFile
        Object initScriptFile ( init_script_file )
    
    Sets the init_script_file. 
  | 
initScriptId
        Object initScriptId ( init_script_id )
    
    Sets the init_script_id. 
  | 
lang
        Object lang ( language )
    
    The script language being used. 
  | 
lang
        Object lang ( lang )
    
    Set the scripting language used for this aggregation. 
  | 
mapScript
        Object mapScript ( mapScript )
    
    Sets the map script. This is the only required script. 
  | 
mapScriptFile
        Object mapScriptFile ( map_script_file )
    
    Sets the map_script_file. 
  | 
mapScriptId
        Object mapScriptId ( map_script_id )
    
    Sets the map_script_id. 
  | 
params
        Object params ( p )
    
    Sets parameters that will be applied to the script.  Overwrites
      any existing params. 
  | 
params
        Object params ( params )
    
    Set parameters which will be passed to the init, map and combine scripts. 
  | 
reduceParams
        Object reduceParams ( reduceParams )
    
    Set parameters which will be passed to the reduce script. 
  | 
reduceScript
        Object reduceScript ( reduceScript )
    
    Sets the combine phase script. 
  | 
reduceScriptFile
        Object reduceScriptFile ( reduce_script_file )
    
    Sets the reduce_script_file. 
  | 
reduceScriptId
        Object reduceScriptId ( reduce_script_id )
    
    Sets the reduce_script_id. 
  | 
toJSON
        String toJSON ( )
    
    Retrieves the internal  
  |