org.hackystat.telemetry.analyzer.language.ast
Class ReducerCall

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.language.ast.ReducerCall
All Implemented Interfaces:
Expression

public class ReducerCall
extends java.lang.Object
implements Expression

Telemetry expression representing a reducer call. A reducer is responsible for processing low level software metrics. Reducer call always evaluates to an instance of TelemetryStreamCollection which contains at least one telemetry stream.

Version:
$Id$
Author:
(Cedric) Qin ZHANG

Constructor Summary
ReducerCall(java.lang.String reducerName, Expression[] parameters)
          Constructs this instance.
 
Method Summary
 Expression[] getParameters()
          Gets reducer parameters.
 java.lang.String getReducerName()
          Gets the name of the reducer to be invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReducerCall

public ReducerCall(java.lang.String reducerName,
                   Expression[] parameters)
Constructs this instance.

Parameters:
reducerName - The name of the reducer.
parameters - The reducer parameters. Null is valid if the reducer does not require any parameter.
Method Detail

getReducerName

public java.lang.String getReducerName()
Gets the name of the reducer to be invoked.

Returns:
The reducer name.

getParameters

public Expression[] getParameters()
Gets reducer parameters.

Returns:
The reducer parameters. It will never return null. If there is no parameter, an empty array will be returned.