trait Stream[A] extends AnyRef
A Stream performs lazy iteration. It does not cache data and fetches data only if it's required by the stream.
- Self Type
- Stream[A]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Stream
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @native()
- def collect[B](pf: PartialFunction[A, B]): Stream[B]
- def collectFirst[B, BAG[_]](pf: PartialFunction[A, B])(implicit bag: Bag[BAG]): BAG[Option[B]]
- def collectFirstOrNull[B, BAG[_]](pf: PartialFunction[A, B])(implicit bag: Bag[BAG]): BAG[B]
- def count[BAG[_]](f: (A) ⇒ Boolean)(implicit bag: Bag[BAG]): BAG[Int]
- def drop(count: Int): Stream[A]
- def dropWhile(f: (A) ⇒ Boolean): Stream[A]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def filter(f: (A) ⇒ Boolean): Stream[A]
- def filterNot(f: (A) ⇒ Boolean): Stream[A]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def flatMap[B](f: (A) ⇒ Stream[B]): Stream[B]
-
def
foldLeft[B, BAG[_]](initial: B)(f: (B, A) ⇒ B)(implicit bag: Bag[BAG]): BAG[B]
Materializes are executes the stream.
Materializes are executes the stream.
TODO - tag.foldLeft should run point.
- def foreach[BAG[_]](f: (A) ⇒ Unit)(implicit bag: Bag[BAG]): BAG[Unit]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def headOption[BAG[_]](implicit bag: Bag[BAG]): BAG[Option[A]]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator[BAG[_]](implicit bag: Sync[BAG]): Iterator[BAG[A]]
-
def
lastOption[BAG[_]](implicit bag: Bag[BAG]): BAG[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.
- def map[B](f: (A) ⇒ B): Stream[B]
-
def
materialize[BAG[_]](implicit bag: Bag[BAG]): BAG[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[BAG[_]](implicit bag: Bag[BAG]): BAG[Int]
Folds over all elements in the Stream to calculate it's total size.
- def streamer: Streamer[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def take(count: Int): Stream[A]
- def takeWhile(f: (A) ⇒ Boolean): Stream[A]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()