Package org.teiid
Interface UserDefinedAggregate<T>
-
- Type Parameters:
T
-
- All Known Subinterfaces:
ExposedStateUserDefinedAggregate<T>
- All Known Implementing Classes:
GeometryUtils.Extent
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 T
getResult(CommandContext commandContext)
Called to get the current value.void
reset()
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:
-
-