Trait

pl.metastack.metarx

ReadBuffer

Related Doc: package metarx

Permalink

trait ReadBuffer[T] extends DeltaBuffer[T] with PollBuffer[T]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadBuffer
  2. PollBuffer
  3. Concatenate
  4. AbsoluteOrder
  5. MapExtended
  6. FilterOrdered
  7. Aggregate
  8. RelativeOrder
  9. Filter
  10. Find
  11. Filter
  12. Iterate
  13. RelativeOrder
  14. Index
  15. DeltaBuffer
  16. Map
  17. Size
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val changes: ReadChannel[Delta[T]]

    Permalink
    Definition Classes
    PollBuffer

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(buffer: ReadBuffer[T]): ReadBuffer[T]

    Permalink
    Definition Classes
    Concatenate
  4. def -(other: ReadBufSet[T]): ReadBuffer[T]

    Permalink
    Definition Classes
    FilterOrdered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def after(value: T): ReadChannel[T]

    Permalink

    Definition Classes
    PollBufferRelativeOrder
    Note

    Channels: Value that is produced right after each value

    ,

    Buffers: Current row after value

  7. def after$(value: T): T

    Permalink

    Row after value

    Row after value

    Definition Classes
    PollBufferRelativeOrder
  8. def afterOption(value: T): ReadChannel[T]

    Permalink

    Definition Classes
    PollBufferRelativeOrder
    See also

    after

  9. def afterOption$(value: T): Option[T]

    Permalink

    Row after value with the possibility of non-existence

    Row after value with the possibility of non-existence

    Definition Classes
    PollBufferRelativeOrder
  10. def all(value: T): ReadChannel[Boolean]

    Permalink

    All elements are equal to value

    All elements are equal to value

    Definition Classes
    Filter
    See also

    any

  11. def any(value: 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

  12. def apply(index: Int): T

    Permalink

    Definition Classes
    Index
    See also

    value

  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def before(value: T): ReadChannel[T]

    Permalink

    Definition Classes
    PollBufferRelativeOrder
    Note

    Channels: Value that is produced right before each value

    ,

    Buffers: Current row before value

  15. def before$(value: T): T

    Permalink

    Row before value

    Row before value

    Definition Classes
    PollBufferRelativeOrder
  16. def beforeOption(value: T): ReadChannel[T]

    Permalink

    Definition Classes
    PollBufferRelativeOrder
    See also

    before

  17. def beforeOption$(value: T): Option[T]

    Permalink

    Row before value with the possibility of non-existence

    Row before value with the possibility of non-existence

    Definition Classes
    PollBufferRelativeOrder
  18. def buffer: ReadBuffer[T]

    Permalink
    Definition Classes
    DeltaBuffer
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def collect[U](f: PartialFunction[T, U]): ReadBuffer[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
    PollBufferMapExtended
  21. def concat(buf: ReadBuffer[T]): ReadBuffer[T]

    Permalink
    Definition Classes
    PollBufferConcatenate
  22. def count(value: 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.

  23. def diff(other: ReadBufSet[T]): ReadBuffer[T]

    Permalink

    Remove all elements from other

    Remove all elements from other

    Definition Classes
    PollBufferFilterOrdered
  24. def distinct: ReadBuffer[T]

    Permalink

    Filters out (merges) duplicates

    Filters out (merges) duplicates

    Definition Classes
    PollBufferAggregate
  25. def distinct$: ReadBuffer[T]

    Permalink

    Filters out duplicates

    Filters out duplicates

    Definition Classes
    PollBufferFilter
  26. def drop(count: Int): ReadBuffer[T]

    Permalink
    Definition Classes
    PollBuffer
  27. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def exists(f: (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

  30. def exists$(f: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    PollBuffer
  31. def filter(f: (T) ⇒ Boolean): DeltaBuffer[T]

    Permalink

    TODO Could this be implemented more efficiently without iterating over elements?

    TODO Could this be implemented more efficiently without iterating over elements?

    Definition Classes
    PollBufferFilter
  32. def filter$(f: (T) ⇒ Boolean): ReadBuffer[T]

    Permalink

    Only include elements for which f is true

    Only include elements for which f is true

    Definition Classes
    PollBufferFilter
  33. def filterNot(f: (T) ⇒ Boolean): DeltaBuffer[T]

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def find(f: (T) ⇒ Boolean): ReadPartialChannel[T]

    Permalink

    Returns first matching row; if it gets deleted, returns next match.

    Returns first matching row; if it gets deleted, returns next match.

    Definition Classes
    PollBufferFind
  36. def find$(f: (T) ⇒ Boolean): Option[T]

    Permalink

    Finds first value for which f is true

    Finds first value for which f is true

    Definition Classes
    PollBufferFilter
  37. def flatMap[U](f: (T) ⇒ ReadBuffer[U]): ReadBuffer[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
    PollBufferMapExtended
  38. def flatMapCh[U](f: (T) ⇒ ReadPartialChannel[U]): ReadBuffer[U]

    Permalink
    Definition Classes
    PollBuffer
  39. def flatMapSeq[U](f: (T) ⇒ Seq[U]): ReadBuffer[U]

    Permalink

    Definition Classes
    PollBufferMapExtended
    See also

    flatMap

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

    Permalink
    Definition Classes
    PollBuffer
  41. def forall(f: (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

  42. def forall$(f: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    PollBuffer
  43. def foreach(f: (T) ⇒ Unit): Unit

    Permalink

    Iterates over all row values with the given function f

    Iterates over all row values with the given function f

    Definition Classes
    PollBufferIterate
  44. def get: Seq[T]

    Permalink

    All rows as a native type

    All rows as a native type

    Definition Classes
    PollBufferIndex
  45. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  46. def has(value: 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.

  47. def hashCode(): Int

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

    Permalink

    Wraps first element in a channel

    Wraps first element in a channel

    Produce a value for the first row. If the list is empty, head does not produce any value. When the first row is deleted, the next row will be produced.

    Definition Classes
    PollBufferAbsoluteOrder
  49. def headOption: ReadPartialChannel[T]

    Permalink

    First element with the possibility of non-existence

    First element with the possibility of non-existence

    returns

    scala.Some with first row, or scala.None if the list is empty

    Definition Classes
    PollBufferAbsoluteOrder
  50. def indexOf(handle: T): Int

    Permalink

    Index of handle

    Index of handle

    Definition Classes
    PollBufferIndex
  51. def insertions: ReadChannel[T]

    Permalink
    Definition Classes
    DeltaBuffer
  52. 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.

  53. def isHead(element: T): ReadChannel[Boolean]

    Permalink
    Definition Classes
    PollBufferAbsoluteOrder
  54. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  55. def isLast(element: T): ReadChannel[Boolean]

    Permalink
    Definition Classes
    PollBufferAbsoluteOrder
  56. def last: ReadChannel[T]

    Permalink
    Definition Classes
    PollBufferAbsoluteOrder
  57. def lastOption: ReadPartialChannel[T]

    Permalink

    Last element with the possibility of non-existence

    Last element with the possibility of non-existence

    returns

    scala.Some with first row, or scala.None if the list is empty

    Definition Classes
    PollBufferAbsoluteOrder
  58. def map[U](f: (T) ⇒ U): DeltaBuffer[U]

    Permalink

    Unlike mapPure, stores mapping locally.

    Unlike mapPure, stores mapping locally. This is currently needed as widget objects are not immutable.

    Definition Classes
    DeltaBufferMap
  59. def mapPure[U](f: (T) ⇒ U): DeltaBuffer[U]

    Permalink

    Definition Classes
    DeltaBuffer
    Note

    f must not be side-effecting

  60. def mapTo[U](f: (T) ⇒ U): DeltaDict[T, U]

    Permalink
    Definition Classes
    DeltaBuffer
  61. def mkString(): ReadChannel[String]

    Permalink
    Definition Classes
    PollBuffer
  62. def mkString(sep: String): ReadChannel[String]

    Permalink
    Definition Classes
    PollBuffer
  63. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    Negation of isEmpty

    Negation of isEmpty

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

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

    Permalink
    Definition Classes
    AnyRef
  67. def partition(f: (T) ⇒ Boolean): (DeltaBuffer[T], DeltaBuffer[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
  68. def partition$(f: (T) ⇒ Boolean): (ReadBuffer[T], ReadBuffer[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
    PollBufferFilter
  69. def reduce[U >: T](op: (U, U) ⇒ U): ReadChannel[U]

    Permalink
    Definition Classes
    PollBuffer
  70. def removals: ReadChannel[T]

    Permalink
    Definition Classes
    DeltaBuffer
  71. def size: ReadChannel[Int]

    Permalink

    Definition Classes
    DeltaBufferSize
    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.

  72. def span(f: (T) ⇒ Boolean): (ReadBuffer[T], ReadBuffer[T])

    Permalink

    Splits stream into two sub-streams

    Splits stream into two sub-streams

    The left stream contains all elements as long as f is true, all subsequent elements go to the right stream.

    Definition Classes
    PollBufferFilterOrdered
  73. def span$(f: (T) ⇒ Boolean): (ReadBuffer[T], ReadBuffer[T])

    Permalink

    Split container into two sub-containers

    Split container into two sub-containers

    The left container contains all elements if f is true, all subsequent elements go to the right container.

    Definition Classes
    PollBufferFilter
  74. def splitAt(element: T): (ReadBuffer[T], ReadBuffer[T])

    Permalink
    Definition Classes
    PollBufferAbsoluteOrder
  75. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  76. def tail: ReadBuffer[T]

    Permalink
    Definition Classes
    PollBufferAbsoluteOrder
  77. def take(count: Int): ReadBuffer[T]

    Permalink
    Definition Classes
    PollBuffer
  78. def takeUntil(ch: ReadChannel[_]): DeltaBuffer[T]

    Permalink
    Definition Classes
    DeltaBuffer
  79. def toSeq: ReadChannel[Seq[T]]

    Permalink
    Definition Classes
    PollBuffer
  80. def toString(): String

    Permalink
    Definition Classes
    PollBuffer → AnyRef → Any
  81. def value(index: Int): T

    Permalink

    N-th row

    N-th row

    Definition Classes
    PollBufferIndex
  82. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PollBuffer[T]

Inherited from Concatenate[ReadBuffer, T]

Inherited from AbsoluteOrder[ReadBuffer, T]

Inherited from MapExtended[ReadBuffer, T]

Inherited from FilterOrdered[ReadBuffer, T]

Inherited from Aggregate[ReadBuffer, T]

Inherited from RelativeOrder[T]

Inherited from Filter[DeltaBuffer, T, T]

Inherited from Find[T]

Inherited from Filter[ReadBuffer, T]

Inherited from Iterate[T]

Inherited from RelativeOrder[T]

Inherited from Index[Seq, Int, T]

Inherited from DeltaBuffer[T]

Inherited from Map[DeltaBuffer, T]

Inherited from Size

Inherited from AnyRef

Inherited from Any

Ungrouped