Class/Object

swaydb

Stream

Related Docs: object Stream | package swaydb

Permalink

abstract class Stream[A, W[_]] extends Streamer[A, W]

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

W

wrapper type.

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

Instance Constructors

  1. new Stream()(implicit wrap: Wrap[W])

    Permalink

    wrap

    Implementation for the wrap type.

Abstract Value Members

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

    Permalink
    Definition Classes
    Stream → Streamer

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, W]

    Permalink
    Definition Classes
    Stream → Streamer
  7. def dropWhile(f: (A) ⇒ Boolean): Stream[A, W]

    Permalink
    Definition Classes
    Stream → Streamer
  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, W]

    Permalink
    Definition Classes
    Stream → Streamer
  11. def filterNot(f: (A) ⇒ Boolean): Stream[A, W]

    Permalink
    Definition Classes
    Stream → Streamer
  12. def flatMap[B](f: (A) ⇒ Stream[B, W]): Stream[B, W]

    Permalink
    Definition Classes
    Stream → Streamer
  13. def foldLeft[B](initial: B)(f: (B, A) ⇒ B): W[B]

    Permalink

    Materializes are executes the stream.

    Materializes are executes the stream.

    Definition Classes
    Stream → Streamer
  14. def foreach[U](f: (A) ⇒ U): Stream[Unit, W]

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

    Permalink
    Definition Classes
    Stream → Streamer
  20. def materialize: W[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: W[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
    Stream → Streamer
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Stream → Streamer
  27. def takeWhile(f: (A) ⇒ Boolean): Stream[A, W]

    Permalink
    Definition Classes
    Stream → Streamer
  28. def toFutureStream(implicit ec: ExecutionContext): Stream[A, Future]

    Permalink

    Converts the current Stream with Future API.

    Converts the current Stream with Future API. If the current stream is blocking, the output stream will still return blocking stream but wrapped as future APIs.

  29. def toIOStream(timeout: FiniteDuration): Stream[A, IO]

    Permalink

    If the current stream is Future/Async this will return a blocking stream.

    If the current stream is Future/Async this will return a blocking stream.

    timeout

    If the current stream is async/future based then the timeout is used else it's ignored.

  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def toTryStream(timeout: FiniteDuration): Stream[A, Try]

    Permalink

    If the current stream is Async this will return a blocking stream.

    If the current stream is Async this will return a blocking stream.

    timeout

    If the current stream is async/future based then the timeout is used else it's ignored.

  32. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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 Streamer[A, W]

Inherited from AnyRef

Inherited from Any

Ungrouped