com.ibm.streamsx.topology.logic

Class Logic

  • java.lang.Object
    • com.ibm.streamsx.topology.logic.Logic


  • public class Logic
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      Logic() 
    • Constructor Detail

      • Logic

        public Logic()
    • Method Detail

      • notKeyed

        public static <T> Function<T,java.lang.Object> notKeyed()
      • first

        public static <T,U,R> BiFunction<T,java.util.List<U>,R> first(BiFunction<T,U,R> logic)
        Wrap a BiFunction instance that operators on a single value for the second parameter (type U) as a BiFunction that takes an List. Only the first value from the list will be passed to to logic. If the list is empty, then null is passed.
        Parameters:
        logic - Logic to be called.
        Returns:
        Wrapper Function2 that accepts an List of type U and passes the first value or null to logic.
streamsx.topology 2.1 @ IBMStreams GitHub