Class/Object

org.dsa.iot.rx.core

Fold

Related Docs: object Fold | package core

Permalink

class Fold[T, R] extends RxTransformer[T, R]

Repeatedly applies a function, where the first argument is the result obtained in the previous application (first time - the initial value), and the second argument is each element of the source sequence. Unlike scan it only emits the final result when the source sequence is complete.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fold
  2. RxTransformer
  3. AbstractRxBlock
  4. Logging
  5. RxBlock
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Fold()

    Permalink

Type Members

  1. case class Port[X](name: String) extends Product with Serializable

    Permalink

    Connector for attributes and inputs.

    Connector for attributes and inputs. Provides the input as Observable[X].

    Definition Classes
    AbstractRxBlock
  2. case class PortList[X](name: String) extends IndexedSeq[Port[X]] with Product with Serializable

    Permalink

    Connector for a list of attributes or inputs.

    Connector for a list of attributes or inputs.

    Definition Classes
    AbstractRxBlock

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <~(block: AbstractRxBlock[_ <: T]): Unit

    Permalink
    Definition Classes
    RxTransformer
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. val accumulator: Port[(R, T) ⇒ R]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compute: Observable[R]

    Permalink

    computes the block's output

    computes the block's output

    Attributes
    protected
    Definition Classes
    FoldAbstractRxBlock
  9. def debug(message: ⇒ String, args: Any*): Unit

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

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def error(message: ⇒ String, err: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  13. def error(message: ⇒ String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def from(block: AbstractRxBlock[_ <: T]): Unit

    Permalink
    Definition Classes
    RxTransformer
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. val id: String

    Permalink

    Generates block's id for logging.

    Generates block's id for logging.

    Attributes
    protected
    Definition Classes
    AbstractRxBlock
  19. def info(message: ⇒ String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  20. val initial: Port[R]

    Permalink
  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def observe: Observable[R]

    Permalink

    The currently established Observable output.

    The currently established Observable output.

    Definition Classes
    AbstractRxBlockRxBlock
  26. lazy val output: Observable[R]

    Permalink

    Returns the block's output as an Observable.

    Returns the block's output as an Observable. This observable is stable in the sense that it keeps emitting items, whether the block has been reset, or its inputs changed etc., i.e. it never calls onError or onCompleted methods on its subscribers until the block's shutdown() method is called.

    Definition Classes
    AbstractRxBlockRxBlock
  27. def reset(): Unit

    Permalink

    Resets the block by renewing the subscriptions and re-initiating the sequence.

    Resets the block by renewing the subscriptions and re-initiating the sequence.

    Definition Classes
    AbstractRxBlockRxBlock
  28. def shutdown(): Unit

    Permalink

    Cancels all subscriptions and stops emitting items.

    Cancels all subscriptions and stops emitting items.

    Definition Classes
    AbstractRxBlockRxBlock
  29. val source: Port[T]

    Permalink
    Definition Classes
    RxTransformer
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def to[U](block: RxTransformer[_ >: R, U]): block.type

    Permalink

    Connects the output of this block to source input port of a transformer block.

    Connects the output of this block to source input port of a transformer block.

    Definition Classes
    AbstractRxBlock
  32. def to[T](port: Port[_ >: R]): owner.type

    Permalink

    Connects the output of this block to an input port of another block.

    Connects the output of this block to an input port of another block.

    Definition Classes
    AbstractRxBlock
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def trace(message: ⇒ String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  35. def unsubsribeOutput(): Unit

    Permalink

    Cancels the output subscription.

    Cancels the output subscription.

    Attributes
    protected
    Definition Classes
    AbstractRxBlock
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def warn(message: ⇒ String, err: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  40. def warn(message: ⇒ String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  41. def withEvents(name: String)(stream: Observable[R]): Observable[R]

    Permalink

    Decorates the observable by adding listeners for its lifecycle events.

    Decorates the observable by adding listeners for its lifecycle events.

    Attributes
    protected
    Definition Classes
    AbstractRxBlock
  42. def ~>[U](block: RxTransformer[_ >: R, U]): block.type

    Permalink

    Connects the output of this block to source input port of a transformer block.

    Connects the output of this block to source input port of a transformer block. An alias for to(block).

    Definition Classes
    AbstractRxBlock
  43. def ~>[T](port: Port[_ >: R]): AbstractRxBlock[T]

    Permalink

    Connects the output of this block to an input port of another block.

    Connects the output of this block to an input port of another block. An alias for to(port).

    Definition Classes
    AbstractRxBlock

Inherited from RxTransformer[T, R]

Inherited from AbstractRxBlock[R]

Inherited from Logging

Inherited from RxBlock[R]

Inherited from AnyRef

Inherited from Any

Ungrouped