com.ibm.streamsx.topology.function

Interface ToIntFunction<T>

  • Type Parameters:
    T - Type of the input to the function
    All Superinterfaces:
    java.io.Serializable


    public interface ToIntFunction<T>
    extends java.io.Serializable
    A function that applies a computation to a tuple and returns an int result.
    If an implementation also implements java.lang.AutoCloseable then it will be automatically closed when the application terminates.
    • Method Detail

      • applyAsInt

        int applyAsInt(T tuple)
        Apply the function to the tuple and return an int.
        Parameters:
        tuple - Tuple to be tested.
        Returns:
        int result of the function.
streamsx.topology 2.1 @ IBMStreams GitHub