Package org.teiid
Interface UserDefinedAggregate<T>
-
- Type Parameters:
T-
public interface UserDefinedAggregate<T>Interface to be implemented by a user defined aggregate function.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetResult(CommandContext commandContext)Called to get the current value.voidreset()Called when state from the current partition can be forgotten
-
-
-
Method Detail
-
reset
void reset()
Called when state from the current partition can be forgotten
-
getResult
T getResult(CommandContext commandContext)
Called to get the current value. May be called multiple times in the same partition for windowed aggregates.- Parameters:
commandContext-- Returns:
-
-