com.fsist.stream

Splitter

Related Doc: package stream

final case class Splitter[T](outputCount: Int, outputChooser: Func[T, BitSet])(implicit builder: FutureStreamBuilder) extends Connector[T] with Product with Serializable

Distributes data from one input to several outputs. Each chosen output is called sequentially and must complete handling the element before the next output is called.

outputChooser

called for each input element. Should return the outputs to which this element is copied. If an empty BitSet is returned, the element is dropped.

Linear Supertypes
Serializable, Serializable, Product, Equals, Connector[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Splitter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Connector
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Splitter(outputCount: Int, outputChooser: Func[T, BitSet])(implicit builder: FutureStreamBuilder)

    outputChooser

    called for each input element. Should return the outputs to which this element is copied. If an empty BitSet is returned, the element is dropped.

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. implicit val builder: FutureStreamBuilder

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def connectInputs(sources: Seq[SourceComponent[T]]): Splitter.this.type

    Connects these sources to our inputs, in order.

    Connects these sources to our inputs, in order.

    This is a convenience method only; you can call connect() on each ConnectorInput individually.

    Definition Classes
    Connector
    Exceptions thrown

    IllegalArgumentException if the size of sources isn't the same as the size of this.inputs.

  8. def connectOutputs(sinks: Seq[SinkComponent[T]]): Splitter.this.type

    Connects these sinks to our outputs, in order.

    Connects these sinks to our outputs, in order.

    This is a convenience method only; you can call connect() on each ConnectorOutput individually.

    Definition Classes
    Connector
    Exceptions thrown

    IllegalArgumentException if the size of sinks isn't the same as the size of this.outputs.

  9. def edges: IndexedSeq[ConnectorEdge[T]]

    The inputs and outputs of this Connector.

    The inputs and outputs of this Connector.

    Definition Classes
    Connector
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def input: ConnectorInput[T]

  14. val inputs: Vector[ConnectorInput[T]]

    The inputs to this Connector.

    The inputs to this Connector. They are fixed; this method will always return the exact same sequence.

    Definition Classes
    SplitterConnector
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. val outputChooser: Func[T, BitSet]

    called for each input element.

    called for each input element. Should return the outputs to which this element is copied. If an empty BitSet is returned, the element is dropped.

  20. val outputCount: Int

  21. val outputs: IndexedSeq[ConnectorOutput[T]]

    The outputs from this Connector.

    The outputs from this Connector. They are fixed; this method will always return the exact same sequence.

    Definition Classes
    SplitterConnector
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Connector[T]

Inherited from AnyRef

Inherited from Any

Ungrouped