Class StreamPipe<I,​O>

All Implemented Interfaces:
Node, StreamIn<I>, StreamNode, StreamOut<O>, Comparable<Node>

public class StreamPipe<I,​O>
extends SimpleNode<Transformer<I,​O>>
implements StreamIn<I>, StreamOut<O>, StreamNode
Author:
Pierre Lecerf ([email protected]) Created on 2020/12/01
  • Constructor Details

  • Method Details

    • into

      public <NO> StreamPipe<O,​NO> into​(Transformer<O,​NO> transformer)
      Description copied from interface: StreamOut
      Binds the current node into a Transformer, resulting in a new StreamPipe node.
      Specified by:
      into in interface StreamOut<I>
      Type Parameters:
      NO - Output type of the pipe node
      Parameters:
      transformer - a Transformer actor
      Returns:
      the resulting StreamPipe node
    • into

      public StreamSink<O> into​(Loader<O> loader)
      Description copied from interface: StreamOut
      Binds the current node into a Loader, resulting in a new StreamSink node.
      Specified by:
      into in interface StreamOut<I>
      Parameters:
      loader - a Loader actor
      Returns:
      the resulting StreamSink node
    • join

      public <JI,​ JO> StreamJoin<O,​JI,​JO> join​(FlowOut<JI> input, BiTransformer<O,​JI,​JO> transformer)
      Description copied from interface: StreamOut
      Joins the current stream node with another non-stream flow using a bi-transformer join function.
      Specified by:
      join in interface StreamOut<I>
      Type Parameters:
      JI - Input type from another flow
      JO - Output type of the joined flow
      Parameters:
      input - Flow with which to join the current flow.
      transformer - A bi-transformer function for performing the join.
      Returns:
    • accumulate

      public <N> StreamAccumulator<O,​N> accumulate​(Accumulator<O,​N> accumulator)
      Specified by:
      accumulate in interface StreamOut<I>
      Returns:
    • drift

      public StreamPipe<I,​O> drift​(Loader<O> loader)
      Parameters:
      loader -
      Returns: