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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Stream
- Streamable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def headOption: T[Option[A]]
- Definition Classes
- Stream → Streamable
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collect[B](pf: PartialFunction[A, B]): Stream[B, T]
- def collectFirst[B](pf: PartialFunction[A, B]): T[Option[B]]
- def count(f: (A) => Boolean): T[Int]
- def drop(c: Int): Stream[A, T]
- Definition Classes
- Stream → Streamable
- def dropWhile(f: (A) => Boolean): Stream[A, T]
- Definition Classes
- Stream → Streamable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter(f: (A) => Boolean): Stream[A, T]
- Definition Classes
- Stream → Streamable
- def filterNot(f: (A) => Boolean): Stream[A, T]
- Definition Classes
- Stream → Streamable
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[B](f: (A) => Stream[B, T]): Stream[B, T]
- Definition Classes
- Stream → Streamable
- def foldLeft[B](initial: B)(f: (B, A) => B): T[B]
Materializes are executes the stream.
Materializes are executes the stream.
- Definition Classes
- Stream → Streamable
- def foreach[U](f: (A) => U): Stream[Unit, T]
- Definition Classes
- Stream → Streamable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastOption: T[Option[A]]
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 → Streamable
- def map[B](f: (A) => B): Stream[B, T]
- Definition Classes
- Stream → Streamable
- def materialize: T[ListBuffer[A]]
Materialises/closes and processes the stream to a Seq.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def size: T[Int]
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 → Streamable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(c: Int): Stream[A, T]
- Definition Classes
- Stream → Streamable
- def takeWhile(f: (A) => Boolean): Stream[A, T]
- Definition Classes
- Stream → Streamable
- def to[B[_]](implicit tag: Tag[B], converter: Converter[T, B]): Stream[A, B]
Given a Tag.Converter this function converts the current Stream to another type.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()