com.ibm.streams.operator.window

Interface StreamWindowPartitioner<T,P>

  • Type Parameters:
    T - Tuple type
    P - Partition type. The partition type must be suitable for use as a key in a Map.


    public interface StreamWindowPartitioner<T,P>
    StreamWindowPartitioner provides the mapping from an tuple being inserted into the window to a partition.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      P getPartition(T tuple)
      Return the window's partition for the tuple.
    • Method Detail

      • getPartition

        P getPartition(T tuple)
        Return the window's partition for the tuple.
        Parameters:
        tuple - Tuple being inserted into the window.
        Returns:
        Partition for tuple.