|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AggregateFunction
This represents the interface for an aggregate function. The basic lifecycle is that the AggregateFunction is initialize()'d with the type of the element being aggregated, then addInput() is called for every row in the group, then getResult() is called to retrieve the result.
Method Summary | |
---|---|
void |
addInput(java.lang.Object input)
Called for the element value in every row of a group. |
java.lang.Object |
getResult()
Called after all values have been processed to get the result. |
void |
initialize(java.lang.Class dataType)
Called to initialize the function. |
void |
reset()
Called to reset the state of the function. |
Method Detail |
---|
void initialize(java.lang.Class dataType)
dataType
- Data type of element begin aggregatedvoid reset()
void addInput(java.lang.Object input) throws FunctionExecutionException, ExpressionEvaluationException, MetaMatrixComponentException
input
- Input value, may be null
FunctionExecutionException
ExpressionEvaluationException
MetaMatrixComponentException
java.lang.Object getResult() throws FunctionExecutionException, ExpressionEvaluationException, MetaMatrixComponentException, MetaMatrixProcessingException
MetaMatrixProcessingException
FunctionExecutionException
ExpressionEvaluationException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |