com.ibm.streamsx.topology.streams

Class CollectionStreams

  • java.lang.Object
    • com.ibm.streamsx.topology.streams.CollectionStreams


  • public class CollectionStreams
    extends java.lang.Object
    Utilities for streams tuples that are collections of values.
    • Constructor Detail

      • CollectionStreams

        public CollectionStreams()
    • Method Detail

      • flatten

        public static <C extends java.util.Collection<T>,T> TStream<T> flatten(TStream<C> stream)
        ' Flatten a stream containing collections into a stream containing the individual elements. Elements are added to the returned stream in the order of the iterator for the input tuple.
        Parameters:
        stream - Stream to be flattened.
        Returns:
        Flattened stream.
      • flattenMap

        public static <M extends java.util.Map<K,V>,K,V> TStream<java.util.AbstractMap.SimpleImmutableEntry<K,V>> flattenMap(TStream<M> stream)
streamsx.topology 2.1 @ IBMStreams GitHub