Class/Object

swaydb

Stream

Related Docs: object Stream | package swaydb

Permalink

abstract class Stream[A, T[_]] extends Streamable[A, T]

A Stream performs lazy iteration. It does not cache data and fetches data only if it's required by the stream.

A

stream item's type

T

wrapper type.

Self Type
Stream[A, T]
Linear Supertypes
Streamable[A, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stream
  2. Streamable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Stream()(implicit tag: Tag[T])

    Permalink

    tag

    Implementation for the tag type.

Abstract Value Members

  1. abstract def headOption: T[Option[A]]

    Permalink
    Definition Classes
    StreamStreamable

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def collect[B](pf: PartialFunction[A, B]): Stream[B, T]

    Permalink
  7. def drop(count: Int): Stream[A, T]

    Permalink
    Definition Classes
    StreamStreamable
  8. def dropWhile(f: (A) ⇒ Boolean): Stream[A, T]

    Permalink
    Definition Classes
    StreamStreamable
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def filter(f: (A) ⇒ Boolean): Stream[A, T]

    Permalink
    Definition Classes
    StreamStreamable
  12. def filterNot(f: (A) ⇒ Boolean): Stream[A, T]

    Permalink
    Definition Classes
    StreamStreamable
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[B](f: (A) ⇒ Stream[B, T]): Stream[B, T]

    Permalink
    Definition Classes
    StreamStreamable
  15. def foldLeft[B](initial: B)(f: (B, A) ⇒ B): T[B]

    Permalink

    Materializes are executes the stream.

    Materializes are executes the stream.

    Definition Classes
    StreamStreamable
  16. def foreach[U](f: (A) ⇒ U): Stream[Unit, T]

    Permalink
    Definition Classes
    StreamStreamable
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def lastOption: T[Option[A]]

    Permalink

    Reads all items from the Stream and returns the last.

    Reads all items from the Stream and returns the last.

    For a more efficient one use swaydb.Map.lastOption or swaydb.Set.lastOption instead.

    Definition Classes
    StreamStreamable
  21. def map[B](f: (A) ⇒ B): Stream[B, T]

    Permalink
    Definition Classes
    StreamStreamable
  22. def materialize: T[Seq[A]]

    Permalink

    Materialises/closes and processes the stream to a Seq.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def size: T[Int]

    Permalink

    Folds over all elements in the Stream to calculate it's total size.

    Folds over all elements in the Stream to calculate it's total size.

    Definition Classes
    StreamStreamable
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def take(count: Int): Stream[A, T]

    Permalink
    Definition Classes
    StreamStreamable
  29. def takeWhile(f: (A) ⇒ Boolean): Stream[A, T]

    Permalink
    Definition Classes
    StreamStreamable
  30. def to[B[_]](implicit tag: Tag[B], converter: Converter[T, B]): Stream[A, B]

    Permalink

    Given a Tag.Converter this function converts the current Stream to another type.

  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

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

Inherited from Streamable[A, T]

Inherited from AnyRef

Inherited from Any

Ungrouped