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
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def drop(count: Int): Stream[A, T]

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

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

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

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

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

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

    Permalink
    Definition Classes
    StreamStreamable
  13. 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
  14. def foreach[U](f: (A) ⇒ U): Stream[Unit, T]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. 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
  19. def map[B](f: (A) ⇒ B): Stream[B, T]

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

    Permalink

    Materialises/closes and processes the stream to a Seq.

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. 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
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    StreamStreamable
  28. 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.

  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Streamable[A, T]

Inherited from AnyRef

Inherited from Any

Ungrouped