Trait

pl.metastack.metarx

ReadPartialChannel

Related Doc: package metarx

Permalink

trait ReadPartialChannel[T] extends ReadStateChannel[Option[T]] with Empty with Count[T] with metarx.reactive.stream.PartialChannel[T]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReadPartialChannel
  2. PartialChannel
  3. Count
  4. Empty
  5. ReadStateChannel
  6. ReadChannel
  7. Disposable
  8. Flush
  9. Size
  10. Cache
  11. MapExtended
  12. Map
  13. Filter
  14. Aggregate
  15. Is
  16. Fold
  17. Take
  18. Tail
  19. Head
  20. AnyRef
  21. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def contains$(value: T): Boolean

    Permalink
    Definition Classes
    Count
  2. abstract def dispose(): Unit

    Permalink
    Definition Classes
    Disposable
  3. abstract def flush(f: (Option[T]) ⇒ Unit): Unit

    Permalink

    Call f for each element

    Call f for each element

    Definition Classes
    ReadChannelFlush
  4. abstract def get: Option[T]

    Permalink
    Definition Classes
    ReadStateChannel
  5. abstract def isDefined: ReadChannel[Boolean]

    Permalink

    true if partial channel has a value, false otherwise

    true if partial channel has a value, false otherwise

    Definition Classes
    PartialChannel
  6. abstract def isEmpty$: Boolean

    Permalink
    Definition Classes
    Empty
  7. abstract def nonEmpty$: Boolean

    Permalink
    Definition Classes
    Empty

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def >>(ch: WriteChannel[Option[T]]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  5. def all(value: Option[T]): ReadChannel[Boolean]

    Permalink

    All elements are equal to value

    All elements are equal to value

    Definition Classes
    Filter
    See also

    any

  6. def any(value: Option[T]): ReadChannel[Boolean]

    Permalink

    At least one element is equal to value

    At least one element is equal to value

    Definition Classes
    Filter
    See also

    all

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def attach(f: (Option[T]) ⇒ Unit): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  9. def buffer: Buffer[Option[T]]

    Permalink

    Buffers all produced elements

    Buffers all produced elements

    Definition Classes
    ReadChannel
  10. def cache(default: Option[T]): ReadStateChannel[Option[T]]

    Permalink
    Definition Classes
    ReadChannelCache
  11. def cache: ReadPartialChannel[Option[T]]

    Permalink
    Definition Classes
    ReadChannelCache
  12. def child(): ReadChannel[Option[T]]

    Permalink
    Definition Classes
    ReadChannel
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def collect[U](f: PartialFunction[Option[T], U]): ReadChannel[U]

    Permalink

    Applies partial function f on each element; if the function is not defined for the current input, it is filtered out

    Applies partial function f on each element; if the function is not defined for the current input, it is filtered out

    Definition Classes
    ReadChannelMapExtended
  15. def contains(value: T): ReadChannel[Boolean]

    Permalink
  16. def count(value: Option[T]): ReadChannel[Int]

    Permalink

    Count number of occurrence of value.

    Count number of occurrence of value.

    Definition Classes
    Filter
    Note

    Channels: With every matching element, the counter is increased.

    ,

    Buffers: When the element is removed, the counter is decreased.

  17. def detach(ch: ChildChannel[Option[T], _]): Unit

    Permalink
    Definition Classes
    ReadChannel
  18. def distinct: ReadChannel[Option[T]]

    Permalink

    Filters out (merges) duplicates

    Filters out (merges) duplicates

    Definition Classes
    ReadChannelAggregate
  19. def drop(count: Int): ReadChannel[Option[T]]

    Permalink

    Definition Classes
    ReadChannelTake
    Note

    Channels: Skips first count elements, then stop listening. Subscribing to it will always yield the last result as initial value.

    ,

    Buffers: Creates a sub-buffer without the first count elements.

  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def exists(f: (Option[T]) ⇒ Boolean): ReadChannel[Boolean]

    Permalink

    Checks for existence of a value for which f is true

    Checks for existence of a value for which f is true

    Definition Classes
    Filter
    Note

    Channels: false as long as f returns false, then true

    ,

    Buffers: false as long as no row exists where f is true, then true

    See also

    forall

  23. def filter(f: (Option[T]) ⇒ Boolean): ReadChannel[Option[T]]

    Permalink

    Only include elements for which f is true

    Only include elements for which f is true

    Definition Classes
    ReadChannelFilter
  24. def filterCycles: ReadChannel[Option[T]]

    Permalink
    Definition Classes
    ReadChannel
  25. def filterNot(f: (Option[T]) ⇒ Boolean): ReadChannel[Option[T]]

    Permalink
    Definition Classes
    Filter
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def flatMap[U](f: (Option[T]) ⇒ ReadChannel[U]): ReadChannel[U]

    Permalink

    Applies f on each element and flatten its result into the stream

    Applies f on each element and flatten its result into the stream

    Definition Classes
    ReadChannelMapExtended
  28. def flatMapBuf[U](f: (Option[T]) ⇒ ReadBuffer[U]): ReadBuffer[U]

    Permalink
    Definition Classes
    ReadChannel
  29. def flatMapCh[U](f: (Option[T]) ⇒ Channel[U]): Channel[U]

    Permalink

    flatMap with back-propagation.

    flatMap with back-propagation.

    Definition Classes
    ReadChannel
  30. def flatMapSeq[U](f: (Option[T]) ⇒ Seq[U]): ReadChannel[U]

    Permalink

    Definition Classes
    ReadChannelMapExtended
    See also

    flatMap

  31. def foldLeft[U](acc: U)(f: (U, Option[T]) ⇒ U): ReadChannel[U]

    Permalink

    Definition Classes
    ReadChannelFold
    Note

    Caches the accumulator value.

  32. def forall(f: (Option[T]) ⇒ Boolean): ReadChannel[Boolean]

    Permalink

    Checks whether f is true for all elements

    Checks whether f is true for all elements

    Definition Classes
    Filter
    See also

    exists

  33. def forkBiFlat[U](obs: Observer[Option[T], Channel[U]]): Channel[U]

    Permalink

    Bi-directional fork for channels

    Bi-directional fork for channels

    Definition Classes
    ReadChannel
  34. def forkUni[U](observer: Observer[Option[T], U], filterCycles: Boolean = false): ReadChannel[U]

    Permalink

    Uni-directional fork for values

    Uni-directional fork for values

    Definition Classes
    ReadChannel
  35. def forkUniFlat[U](observer: Observer[Option[T], ReadChannel[U]]): ReadChannel[U]

    Permalink

    Uni-directional fork for channels

    Uni-directional fork for channels

    Definition Classes
    ReadChannel
  36. def forkUniState[U](observer: Observer[Option[T], U], onFlush: ⇒ Option[U]): ReadChannel[U]

    Permalink
    Definition Classes
    ReadChannel
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def has(value: Option[T]): ReadChannel[Boolean]

    Permalink

    Stream contains at least one occurrence of value.

    Stream contains at least one occurrence of value.

    Definition Classes
    Filter
    Note

    Channels: Once true, will never produce any other value.

    ,

    Buffers: When the item is removed, it will produce false.

  39. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  40. def head: ReadChannel[Option[T]]

    Permalink

    Wraps first element as a channel

    Wraps first element as a channel

    Denotes first produced element after the head call; whether head has observers at this point is irrelevant as the value is cached (i.e. attaching repeatedly will always lead the same value)

    Definition Classes
    ReadChannelHead
  41. def is(value: Option[T]): ReadChannel[Boolean]

    Permalink

    Current value is equal to value

    Current value is equal to value

    Definition Classes
    ReadChannelIs
  42. def isEmpty: ReadChannel[Boolean]

    Permalink

    Definition Classes
    Size
    Note

    Partial channels: Produce true if the current value is cleared.

    ,

    Channels: Produce false with the first received value.

    ,

    Buffers: Produce a new value once a row is added or removed.

  43. def isHead(value: Option[T]): ReadChannel[Boolean]

    Permalink

    Checks whether the given element is the first produced value

    Checks whether the given element is the first produced value

    Definition Classes
    ReadChannelHead
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. def isNot(value: Option[T]): ReadChannel[Boolean]

    Permalink

    Current value is not equal to value

    Current value is not equal to value

    Definition Classes
    ReadChannelIs
  46. def map[U](f: (Option[T]) ⇒ U): ReadChannel[U]

    Permalink

    Applies f on each element

    Applies f on each element

    Definition Classes
    ReadChannelMap
  47. def mapOrElse[U](f: (T) ⇒ U, default: U): ReadChannel[U]

    Permalink
  48. def mapTo[U](f: (Option[T]) ⇒ U): DeltaDict[Option[T], U]

    Permalink

    Map f on each element and turn stream into a dictionary

    Map f on each element and turn stream into a dictionary

    Definition Classes
    ReadChannelMapExtended
  49. def max[U >: Option[T]](init: U)(implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Calculates maximum value

    Calculates maximum value

    Definition Classes
    Fold
    See also

    foldLeft

  50. def merge(ch: ReadChannel[Option[T]]): ReadChannel[Option[T]]

    Permalink
    Definition Classes
    ReadChannel
  51. def min[U >: Option[T]](init: U)(implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Calculates minimum value

    Calculates minimum value

    Definition Classes
    Fold
    See also

    foldLeft

  52. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  53. def nonEmpty: ReadChannel[Boolean]

    Permalink

    Negation of isEmpty

    Negation of isEmpty

    Definition Classes
    Size
  54. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  56. def or(ch: ReadChannel[_]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  57. def orElse(default: ⇒ ReadChannel[T]): ReadChannel[T]

    Permalink
  58. def partition(f: (Option[T]) ⇒ Boolean): (ReadChannel[Option[T]], ReadChannel[Option[T]])

    Permalink

    Partitions stream into two sub-stream

    Partitions stream into two sub-stream

    The left stream contains all elements for which f is true, all other elements go to the right stream.

    Definition Classes
    Filter
  59. def product[U >: Option[T]](implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Calculates product

    Calculates product

    Definition Classes
    Fold
    See also

    foldLeft

  60. def publish[U](ch: WriteChannel[Option[T]], ignore: ReadChannel[U]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  61. def publish(ch: WriteChannel[Option[T]]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  62. def silentAttach(f: (Option[T]) ⇒ Unit): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  63. def size: ReadChannel[Int]

    Permalink

    Definition Classes
    ReadPartialChannelSize
    Note

    State channels: Produce when a new child is attached and if the size changes. In Opt the size is reset if the value is cleared.

    ,

    Channels: The size is only produced in response to each received value on the channel.

    ,

    Buffers: Produce the row count once a row is added or removed.

  64. def sum[U >: Option[T]](implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Sums over all elements

    Sums over all elements

    Definition Classes
    Fold
    See also

    foldLeft

  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  66. def tail: ReadChannel[Option[T]]

    Permalink

    Skips first element

    Skips first element

    Definition Classes
    ReadChannelTail
  67. def take(count: Int): ReadChannel[Option[T]]

    Permalink

    Definition Classes
    ReadChannelTake
    Note

    Channels: Takes first count elements, then stop listening. Subscribing to it will always yield the last result as initial value.

    ,

    Buffers: Will always contain the first count (or less) elements of the parent buffer.

  68. def takeUntil(ch: ReadChannel[_]): ReadChannel[Option[T]]

    Permalink

    Take all elements until ch produces any value

    Take all elements until ch produces any value

    Definition Classes
    ReadChannelTake
  69. def toBuffer: Buffer[Option[T]]

    Permalink

    Buffers only current element

    Buffers only current element

    Definition Classes
    ReadChannel
  70. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  71. def values: ReadChannel[T]

    Permalink

    Filters out all defined values

    Filters out all defined values

    Definition Classes
    ReadPartialChannelPartialChannel
  72. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. def writeTo(write: WriteChannel[Option[T]]): Channel[Option[T]]

    Permalink
    Definition Classes
    ReadChannel
  76. def zip[U](other: ReadChannel[U]): ReadChannel[(Option[T], U)]

    Permalink
    Definition Classes
    ReadChannel
  77. def |(ch: ReadChannel[_]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel

Inherited from reactive.stream.PartialChannel[T]

Inherited from Count[T]

Inherited from Empty

Inherited from ReadStateChannel[Option[T]]

Inherited from ReadChannel[Option[T]]

Inherited from Disposable

Inherited from Flush[Option[T]]

Inherited from Size

Inherited from Cache[Option[T]]

Inherited from MapExtended[ReadChannel, Option[T]]

Inherited from Map[ReadChannel, Option[T]]

Inherited from Filter[ReadChannel, Option[T], Option[T]]

Inherited from Aggregate[ReadChannel, Option[T]]

Inherited from Is[Option[T]]

Inherited from Fold[Option[T]]

Inherited from Take[ReadChannel, Option[T]]

Inherited from Tail[ReadChannel, Option[T]]

Inherited from Head[Option[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped