Class IndexOperator<T>

  • Type Parameters:
    T - type of the incoming items.
    All Implemented Interfaces:
    java.util.function.Function<Multi<T>,​Multi<Tuple2<java.lang.Long,​T>>>

    public class IndexOperator<T>
    extends java.lang.Object
    implements java.util.function.Function<Multi<T>,​Multi<Tuple2<java.lang.Long,​T>>>
    Index operator emitting a Tuple2<Long, T>, with the index (0-based) of the element and the element from upstream. If the upstream emits a failure, then, the failure is propagated.
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexOperator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Multi<Tuple2<java.lang.Long,​T>> apply​(Multi<T> multi)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • IndexOperator

        public IndexOperator()
    • Method Detail

      • apply

        public Multi<Tuple2<java.lang.Long,​T>> apply​(Multi<T> multi)
        Specified by:
        apply in interface java.util.function.Function<Multi<T>,​Multi<Tuple2<java.lang.Long,​T>>>