Packages

case class MultiMap[M, K, V, F, BAG[_]] extends Schema[M, K, V, F, BAG] with MapT[K, V, F, BAG] with Product with Serializable

MultiMap extends swaydb.Map's API to allow storing multiple Maps withing a single Map.

MultiMap is just a simple extension that uses custom data types (MultiKey) and KeyOrder (MultiKey.ordering) for it's API.

Self Type
MultiMap[M, K, V, F, BAG]
Linear Supertypes
Serializable, Serializable, Product, Equals, MapT[K, V, F, BAG], SetMapT[K, V, BAG], Schema[M, K, V, F, BAG], Source[K, (K, V), BAG], Stream[(K, V), BAG], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MultiMap
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MapT
  7. SetMapT
  8. Schema
  9. Source
  10. Stream
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def after(key: K): Source[K, (K, V), BAG]
    Definition Classes
    Source
  5. def applyFunction(from: K, to: K, function: F)(implicit evd: <:<[F, PureFunction.Map[K, V]]): BAG[OK]

    Definition Classes
    MultiMapMapT
    Note

    In other operations like expire, remove, put the input expiration value is compared with defaultExpiration to get the nearest expiration. But functions does not check if the custom logic within the function expires key-values earlier than defaultExpiration.

  6. def applyFunction(key: K, function: F)(implicit evd: <:<[F, PureFunction.Map[K, V]]): BAG[OK]

    Definition Classes
    MultiMapMapT
    Note

    In other operations like expire, remove, put the input expiration value is compared with defaultExpiration to get the nearest expiration. But functions does not check if the custom logic within the function expires key-values earlier than defaultExpiration.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asScala: scala.collection.mutable.Map[K, V]
    Definition Classes
    MultiMapSetMapT
  9. implicit val bag: Bag[BAG]
    Definition Classes
    MultiMap → Stream
  10. def before(key: K): Source[K, (K, V), BAG]
    Definition Classes
    Source
  11. def child[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2], expireAt: Deadline): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  12. def child[K2 <: K](mapKey: M, keyType: Class[K2], expireAt: Deadline): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  13. def child(mapKey: M, expireAt: Deadline): BAG[MultiMap[M, K, V, F, BAG]]

    Creates new or initialises the existing map.

    Creates new or initialises the existing map.

    Definition Classes
    Schema
  14. def child[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2], expireAfter: FiniteDuration): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  15. def child[K2 <: K](mapKey: M, keyType: Class[K2], expireAfter: FiniteDuration): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  16. def child(mapKey: M, expireAfter: FiniteDuration): BAG[MultiMap[M, K, V, F, BAG]]

    Creates new or initialises the existing map.

    Creates new or initialises the existing map.

    Definition Classes
    Schema
  17. def child[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2]): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  18. def child[K2 <: K](mapKey: M, keyType: Class[K2]): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  19. def child(mapKey: M): BAG[MultiMap[M, K, V, F, BAG]]

    Creates new or initialises the existing map.

    Creates new or initialises the existing map.

    Definition Classes
    Schema
  20. def children: Stream[MultiMap[M, K, V, F, BAG], BAG]
    Definition Classes
    Schema
  21. def childrenFlatten: Stream[MultiMap[M, K, V, F, BAG], BAG]

    Flatten all nest children of this map.

    Flatten all nest children of this map.

    Requires a Bag.Sync instead of Bag.Async.

    Definition Classes
    Schema
  22. def childrenKeys: Stream[M, BAG]

    Keys of all child Maps.

    Keys of all child Maps.

    Definition Classes
    Schema
  23. def clearAppliedAndRegisteredFunctions(): BAG[Iterable[String]]
    Definition Classes
    MultiMapMapT
  24. def clearAppliedFunctions(): BAG[Iterable[String]]
    Definition Classes
    MultiMapMapT
  25. def clearKeyValues(): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. def close(): BAG[Unit]
    Definition Classes
    MultiMapSetMapT
  28. def collect[B](pf: PartialFunction[(K, V), B]): Stream[B, BAG]
    Definition Classes
    Stream
  29. def collectFirst[B](pf: PartialFunction[(K, V), B]): BAG[Option[B]]
    Definition Classes
    Stream
  30. def collectFirstOrNull[B](pf: PartialFunction[(K, V), B]): BAG[B]
    Definition Classes
    Stream
  31. def commit(prepare: Iterator[Prepare[K, V, F]]): BAG[OK]
    Definition Classes
    MultiMapMapT
  32. def commit(prepare: Iterable[Prepare[K, V, F]]): BAG[OK]
    Definition Classes
    MultiMapMapT
  33. def commit(prepare: Stream[Prepare[K, V, F], BAG]): BAG[OK]
    Definition Classes
    MultiMapMapT
  34. def commit(prepare: Prepare[K, V, F]*): BAG[OK]
    Definition Classes
    MultiMapMapT
  35. def commitMultiPrepare(transaction: Iterator[MultiPrepare[M, K, V, F]]): BAG[OK]
  36. def commitMultiPrepare(transaction: Iterable[MultiPrepare[M, K, V, F]]): BAG[OK]

    Commits transaction to global map.

  37. def contains(key: K): BAG[Boolean]
    Definition Classes
    MultiMapSetMapT
  38. def count: BAG[Int]
    Definition Classes
    Stream
  39. def count(f: ((K, V)) ⇒ Boolean): BAG[Int]
    Definition Classes
    Stream
  40. val defaultExpiration: Option[Deadline]
  41. def delete(): BAG[Unit]
    Definition Classes
    MultiMapSetMapT
  42. def drop(count: Int): Stream[(K, V), BAG]
    Definition Classes
    Stream
  43. def dropWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), BAG]
    Definition Classes
    Stream
  44. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def equals(other: Any): Boolean
    Definition Classes
    MultiMap → Equals → AnyRef → Any
  46. def expiration(key: K): BAG[Option[Deadline]]
    Definition Classes
    MultiMapSetMapT
  47. def expire(keys: Iterator[(K, Deadline)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  48. def expire(keys: Iterable[(K, Deadline)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  49. def expire(keys: Stream[(K, Deadline), BAG]): BAG[OK]
    Definition Classes
    MultiMapMapT
  50. def expire(keys: (K, Deadline)*): BAG[OK]
    Definition Classes
    MultiMapMapT
  51. def expire(from: K, to: K, at: Deadline): BAG[OK]
    Definition Classes
    MultiMapMapT
  52. def expire(from: K, to: K, after: FiniteDuration): BAG[OK]
    Definition Classes
    MultiMapMapT
  53. def expire(key: K, at: Deadline): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  54. def expire(key: K, after: FiniteDuration): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  55. def filter(f: ((K, V)) ⇒ Boolean): Stream[(K, V), BAG]
    Definition Classes
    Stream
  56. def filterNot(f: ((K, V)) ⇒ Boolean): Stream[(K, V), BAG]
    Definition Classes
    Stream
  57. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  58. def flatMap[B](f: ((K, V)) ⇒ Stream[B, BAG]): Stream[B, BAG]
    Definition Classes
    Stream
  59. def flatten[B](implicit bag: Bag[BAG], evd: <:<[(K, V), BAG[B]]): Stream[B, BAG]
    Definition Classes
    Stream
  60. def foldLeft[B](initial: B)(f: (B, (K, V)) ⇒ B): BAG[B]
    Definition Classes
    Stream
  61. def foldLeftFlatten[B](initial: B)(f: (B, (K, V)) ⇒ BAG[B]): BAG[B]
    Definition Classes
    Stream
  62. def foreach(f: ((K, V)) ⇒ Unit): BAG[Unit]
    Definition Classes
    Stream
  63. def from(key: K): Source[K, (K, V), BAG]
    Definition Classes
    Source
  64. def fromOrAfter(key: K): Source[K, (K, V), BAG]
    Definition Classes
    Source
  65. def fromOrBefore(key: K): Source[K, (K, V), BAG]
    Definition Classes
    Source
  66. def get(key: K): BAG[Option[V]]
    Definition Classes
    MultiMapSetMapT
  67. def getChild[K2 <: K, V2 <: V, F2 <: F](mapKey: M, keyType: Class[K2], valueType: Class[V2], functionType: Class[F2]): BAG[Option[MultiMap[M, K2, V2, F2, BAG]]]
    Definition Classes
    Schema
  68. def getChild[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2]): BAG[Option[MultiMap[M, K2, V2, F, BAG]]]
    Definition Classes
    Schema
  69. def getChild[K2 <: K](mapKey: M, keyType: Class[K2]): BAG[Option[MultiMap[M, K2, V, F, BAG]]]
    Definition Classes
    Schema
  70. def getChild(mapKey: M): BAG[Option[MultiMap[M, K, V, F, BAG]]]

    Returns the child Map

    Returns the child Map

    Definition Classes
    Schema
  71. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  72. def getKey(key: K): BAG[Option[K]]
    Definition Classes
    MultiMapSetMapT
  73. def getKeyDeadline[BAG[_]](key: K, bag: Bag[BAG]): BAG[Option[(K, Option[Deadline])]]
    Definition Classes
    MultiMapMapT
  74. def getKeyDeadline(key: K): BAG[Option[(K, Option[Deadline])]]
    Definition Classes
    MultiMapMapT
  75. def getKeyValue(key: K): BAG[Option[(K, V)]]
    Definition Classes
    MultiMapSetMapT
  76. def getKeyValueDeadline[BAG[_]](key: K, bag: Bag[BAG]): BAG[Option[((K, V), Option[Deadline])]]
    Definition Classes
    MultiMapMapT
  77. def hasChildren: BAG[Boolean]
    Definition Classes
    Schema
  78. def hashCode(): Int
    Definition Classes
    MultiMap → AnyRef → Any
  79. def head: BAG[Option[(K, V)]]
    Definition Classes
    MultiMapSetMapT
  80. def headOption: BAG[Option[(K, V)]]
    Definition Classes
    Stream
  81. def isEmpty: BAG[Boolean]
    Definition Classes
    MultiMapSetMapT
  82. def isFunctionApplied(function: F)(implicit evd: <:<[F, PureFunction.Map[K, V]]): Boolean
    Definition Classes
    MultiMapMapT
  83. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  84. def iterator[BAG[_]](implicit bag: Sync[BAG]): Iterator[BAG[(K, V)]]
    Definition Classes
    Stream
  85. def keySize(key: K): Int
    Definition Classes
    MultiMapMapT
  86. def keys: Stream[K, BAG]
    Definition Classes
    MultiMapSetMapT
  87. def last: BAG[Option[(K, V)]]
    Definition Classes
    MultiMapSetMapT
  88. def lastOption: BAG[Option[(K, V)]]
    Definition Classes
    Stream
  89. def levelMeter(levelNumber: Int): Option[LevelMeter]
    Definition Classes
    MultiMapSetMapT
  90. def levelZeroMeter: LevelZeroMeter
    Definition Classes
    MultiMapSetMapT
  91. def map[B](f: ((K, V)) ⇒ B): Stream[B, BAG]
    Definition Classes
    Stream
  92. def mapFlatten[B](f: ((K, V)) ⇒ BAG[B]): Stream[B, BAG]
    Definition Classes
    Stream
  93. val mapKey: M
  94. def materialize: BAG[ListBuffer[(K, V)]]
    Definition Classes
    Stream
  95. def materialize[C[_]](implicit builder: Builder[(K, V), C[(K, V)]]): BAG[C[(K, V)]]
    Definition Classes
    Stream
  96. def mightContain(key: K): BAG[Boolean]
    Definition Classes
    MultiMapSetMapT
  97. def mightContainFunction(function: F)(implicit evd: <:<[F, PureFunction.Map[K, V]]): BAG[Boolean]
    Definition Classes
    MultiMapMapT
  98. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  99. def nonEmpty: BAG[Boolean]
    Definition Classes
    MultiMapSetMapT
  100. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  101. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  102. def partition(f: ((K, V)) ⇒ Boolean): BAG[(ListBuffer[(K, V)], ListBuffer[(K, V)])]
    Definition Classes
    Stream
  103. def path: Path
    Definition Classes
    MultiMapSetMapT
  104. def prepareRemove(expire: Option[Deadline]): BAG[ListBuffer[Remove[MultiKey[M, K]]]]

    Builds Prepare.Remove statements for all children of this map.

    Builds Prepare.Remove statements for all children of this map.

    Attributes
    protected
    Definition Classes
    Schema
  105. def prepareRemove(expiration: Option[Deadline], forceClear: Boolean, expire: Boolean): BAG[ListBuffer[Prepare[MultiKey[M, K], MultiValue[V], Nothing]]]

    Returns a list of Prepare.Remove statements.

    Returns a list of Prepare.Remove statements.

    expiration

    default expiration to set

    forceClear

    remove the map

    expire

    updates the expiration only. If forceClear is true then this is ignored.

    returns

    a list of Prepare.Remove statements.

    Attributes
    protected
    Definition Classes
    Schema
  106. def put(keyValues: Iterator[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  107. def put(keyValues: Iterable[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  108. def put(keyValues: Stream[(K, V), BAG]): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  109. def put(keyValues: (K, V)*): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  110. def put(key: K, value: V, expireAt: Deadline): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  111. def put(key: K, value: V, expireAfter: FiniteDuration): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  112. def put(key: K, value: V): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  113. def put(key: K, value: V, expireAt: Option[Deadline]): BAG[OK]
    Definition Classes
    SetMapT
  114. def remove(keys: Iterator[K]): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  115. def remove(keys: Iterable[K]): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  116. def remove(keys: Stream[K, BAG]): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  117. def remove(keys: K*): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  118. def remove(from: K, to: K): BAG[OK]
    Definition Classes
    MultiMapMapT
  119. def remove(key: K): BAG[OK]
    Definition Classes
    MultiMapSetMapT
  120. def removeChild(mapKey: M): BAG[Boolean]

    returns

    false if the map does not exist else true on successful remove.

    Definition Classes
    Schema
  121. def replaceChild[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2], expireAt: Option[Deadline]): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  122. def replaceChild[K2 <: K](mapKey: M, keyType: Class[K2], expireAt: Option[Deadline]): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  123. def replaceChild(mapKey: M, expireAt: Option[Deadline]): BAG[MultiMap[M, K, V, F, BAG]]

    Clears existing entries before creating the Map.

    Clears existing entries before creating the Map.

    Definition Classes
    Schema
    Note

    Put has slower immediate write performance for preceding key-value entries. Always use child if clearing existing entries is not required.

  124. def replaceChild[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2], expireAt: Deadline): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  125. def replaceChild[K2 <: K](mapKey: M, keyType: Class[K2], expireAt: Deadline): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  126. def replaceChild(mapKey: M, expireAt: Deadline): BAG[MultiMap[M, K, V, F, BAG]]

    Clears existing entries before creating the Map.

    Clears existing entries before creating the Map.

    Definition Classes
    Schema
    Note

    Put has slower immediate write performance for preceding key-value entries. Always use child if clearing existing entries is not required.

  127. def replaceChild[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2], expireAfter: FiniteDuration): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  128. def replaceChild[K2 <: K](mapKey: M, keyType: Class[K2], expireAfter: FiniteDuration): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  129. def replaceChild(mapKey: M, expireAfter: FiniteDuration): BAG[MultiMap[M, K, V, F, BAG]]

    Clears existing entries before creating the Map.

    Clears existing entries before creating the Map.

    Definition Classes
    Schema
    Note

    Put has slower immediate write performance for preceding key-value entries. Always use child if clearing existing entries is not required.

  130. def replaceChild[K2 <: K, V2 <: V](mapKey: M, keyType: Class[K2], valueType: Class[V2]): BAG[MultiMap[M, K2, V2, F, BAG]]
    Definition Classes
    Schema
  131. def replaceChild[K2 <: K](mapKey: M, keyType: Class[K2]): BAG[MultiMap[M, K2, V, F, BAG]]
    Definition Classes
    Schema
  132. def replaceChild(mapKey: M): BAG[MultiMap[M, K, V, F, BAG]]

    Clears existing entries before creating the Map.

    Clears existing entries before creating the Map.

    Definition Classes
    Schema
    Note

    Put has slower immediate write performance for preceding key-value entries. Always use child if clearing existing entries is not required.

  133. def reverse: Source[K, (K, V), BAG]
    Definition Classes
    Source
  134. def sizeOfBloomFilterEntries: BAG[Int]
    Definition Classes
    MultiMapSetMapT
  135. def sizeOfSegments: Long
    Definition Classes
    MultiMapSetMapT
  136. def stream: Source[K, (K, V), BAG]
    Definition Classes
    Source
  137. def streamer: Streamer[(K, V), BAG]
    Definition Classes
    Stream
  138. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  139. def take(count: Int): Stream[(K, V), BAG]
    Definition Classes
    Stream
  140. def takeWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), BAG]
    Definition Classes
    Stream
  141. def timeLeft(key: K): BAG[Option[FiniteDuration]]
    Definition Classes
    MultiMapSetMapT
  142. def toBag[X[_]](implicit bag: Bag[X]): MultiMap[M, K, V, F, X]

    Returns an Async API of type O where the Bag is known.

    Returns an Async API of type O where the Bag is known.

    Definition Classes
    MultiMapSetMapT
  143. def toString(): String
    Definition Classes
    MultiMap → AnyRef → Any
  144. def update(keyValues: Iterator[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  145. def update(keyValues: Iterable[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  146. def update(keyValues: Stream[(K, V), BAG]): BAG[OK]
    Definition Classes
    MultiMapMapT
  147. def update(keyValues: (K, V)*): BAG[OK]
    Definition Classes
    MultiMapMapT
  148. def update(from: K, to: K, value: V): BAG[OK]
    Definition Classes
    MultiMapMapT
  149. def update(key: K, value: V): BAG[OK]
    Definition Classes
    MultiMapMapT
  150. def valueSize(value: V): Int
    Definition Classes
    MultiMapMapT
  151. def values: Stream[V, BAG]
    Definition Classes
    MultiMapSetMapT
  152. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  153. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  154. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MapT[K, V, F, BAG]

Inherited from SetMapT[K, V, BAG]

Inherited from Schema[M, K, V, F, BAG]

Inherited from Source[K, (K, V), BAG]

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

Inherited from AnyRef

Inherited from Any

Ungrouped