Package org.teiid

Interface UserDefinedAggregate<T>

  • Type Parameters:
    T -

    public interface UserDefinedAggregate<T>
    Interface to be implemented by a user defined aggregate function.
    • 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: