Class

swaydb.extensions.stream

MapStream

Related Doc: package stream

Permalink

case class MapStream[K, V](mapKey: Seq[K], mapsOnly: Boolean = false, userDefinedFrom: Boolean = false, map: swaydb.Map[Key[K], Option[V], IO], till: (K, V) ⇒ Boolean = (_: K, _: V) => true, skip: Int = 0, count: Option[Int] = None)(implicit keySerializer: Serializer[K], mapKeySerializer: Serializer[Key[K]], optionValueSerializer: Serializer[Option[V]]) extends Stream[(K, V), IO] with Product with Serializable

TODO - MapStream and MapKeysStream are similar and need a higher type - tagless final.

Sample order

Key.MapStart(1), MapKey.EntriesStart(1) MapKey.Entry(1, 1) MapKey.EntriesEnd(1) MapKey.SubMapsStart(1) MapKey.SubMap(1, 1000) MapKey.SubMapsEnd(1) MapKey.End(1)

Linear Supertypes
Serializable, Serializable, Product, Equals, Stream[(K, V), IO], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapStream
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Stream
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapStream(mapKey: Seq[K], mapsOnly: Boolean = false, userDefinedFrom: Boolean = false, map: swaydb.Map[Key[K], Option[V], IO], till: (K, V) ⇒ Boolean = (_: K, _: V) => true, skip: Int = 0, count: Option[Int] = None)(implicit keySerializer: Serializer[K], mapKeySerializer: Serializer[Key[K]], optionValueSerializer: Serializer[Option[V]])

    Permalink

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. def after(key: K): MapStream[K, V]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def before(key: K): MapStream[K, V]

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. val count: Option[Int]

    Permalink
    Definition Classes
    MapStreamStream
  9. def drop(count: Int): MapStream[K, V]

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def foldLeft[B](initial: B)(f: (B, (K, V)) ⇒ B): IO[B]

    Permalink
    Definition Classes
    Stream
  12. def foreach[U](f: ((K, V)) ⇒ U): IO[Unit]

    Permalink
    Definition Classes
    Stream
  13. def from(key: K): MapStream[K, V]

    Permalink
  14. def fromOrAfter(key: K): MapStream[K, V]

    Permalink
  15. def fromOrBefore(key: K): MapStream[K, V]

    Permalink
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def headOption: IO[Option[(K, V)]]

    Permalink
    Definition Classes
    MapStreamStream
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def lastOption: IO[Option[(K, V)]]

    Permalink

    lastOption should always force formKey to be the endSubMapsKey because from is always set in swaydb.extensions.Maps and regardless from where the iteration starts the most efficient way to fetch the last is from the key endSubMapsKey.

  20. def lastOptionStream: IO[Option[(K, V)]]

    Permalink
    Definition Classes
    Stream
  21. def map[B](f: ((K, V)) ⇒ B): IO[Stream[B, IO]]

    Permalink
    Definition Classes
    Stream
  22. val map: swaydb.Map[Key[K], Option[V], IO]

    Permalink
  23. val mapKey: Seq[K]

    Permalink
  24. val mapsOnly: Boolean

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def next(previous: (K, V)): IO[Option[(K, V)]]

    Permalink
    Definition Classes
    MapStreamStream
  27. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  29. def restart: Stream[(K, V), IO]

    Permalink
    Definition Classes
    MapStreamStream
  30. def reverse: MapStream[K, V]

    Permalink

    Returns the start key when doing reverse iteration.

    Returns the start key when doing reverse iteration.

    If subMaps are included then it will return the starting point to be Key.SubMapsEnd which will iterate backward until Key.MapEntriesStart else returns the starting point to be Key.MapEntriesEnd to fetch entries only.

  31. val skip: Int

    Permalink
    Definition Classes
    MapStreamStream
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def take(count: Int): MapStream[K, V]

    Permalink
  34. def takeWhile(condition: (K, V) ⇒ Boolean): MapStream[K, V]

    Permalink
  35. def takeWhileKey(condition: (K) ⇒ Boolean): MapStream[K, V]

    Permalink
  36. def takeWhileValue(condition: (V) ⇒ Boolean): MapStream[K, V]

    Permalink
  37. val till: (K, V) ⇒ Boolean

    Permalink
  38. def toSeq: IO[Seq[(K, V)]]

    Permalink
    Definition Classes
    Stream
  39. def toString(): String

    Permalink
    Definition Classes
    MapStream → AnyRef → Any
  40. val userDefinedFrom: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. 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 Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Stream[(K, V), IO]

Inherited from AnyRef

Inherited from Any

Ungrouped