Packages

case class MultiMap[M, K, V, F, BAG[_]] extends 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, F, 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. AnyRef
  9. 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 applyFunction[PF <: F](from: K, to: K, function: PF)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[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.

  5. def applyFunction[PF <: F](key: K, function: PF)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def asScala: scala.collection.mutable.Map[K, V]
    Definition Classes
    MultiMapMapTSetMapT
  8. implicit val bag: Bag[BAG]
  9. def clearKeyValues(): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def close(): BAG[Unit]
    Definition Classes
    MultiMapMapTSetMapT
  12. def commit[PF <: F](prepare: Iterable[Prepare[K, V, PF]])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
    Definition Classes
    MultiMapMapT
  13. def commit[PF <: F](prepare: Stream[Prepare[K, V, PF], BAG])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
    Definition Classes
    MultiMapMapT
  14. def commit[PF <: F](prepare: Prepare[K, V, PF]*)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
    Definition Classes
    MultiMapMapT
  15. def commit[M2, K2, V2, PF <: F](transaction: Iterable[Transaction[M, K, V, PF]])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]], evT: <:<[M2, M], evK: <:<[K2, K], evV: <:<[V2, V]): BAG[OK]

    Commits transaction to global map.

  16. def contains(key: K): BAG[Boolean]
    Definition Classes
    MultiMapMapTSetMapT
  17. val defaultExpiration: Option[Deadline]
  18. def delete(): BAG[Unit]
    Definition Classes
    MultiMapMapTSetMapT
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def expiration(key: K): BAG[Option[Deadline]]
    Definition Classes
    MultiMapMapTSetMapT
  21. def expire(keys: Iterator[(K, Deadline)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  22. def expire(keys: Iterable[(K, Deadline)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  23. def expire(keys: Stream[(K, Deadline), BAG]): BAG[OK]
    Definition Classes
    MultiMapMapT
  24. def expire(keys: (K, Deadline)*): BAG[OK]
    Definition Classes
    MultiMapMapT
  25. def expire(from: K, to: K, at: Deadline): BAG[OK]
    Definition Classes
    MultiMapMapT
  26. def expire(from: K, to: K, after: FiniteDuration): BAG[OK]
    Definition Classes
    MultiMapMapT
  27. def expire(key: K, at: Deadline): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  28. def expire(key: K, after: FiniteDuration): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  29. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def get(key: K): BAG[Option[V]]

    Returns target value for the input key.

    Returns target value for the input key.

    Definition Classes
    MultiMapMapTSetMapT
  31. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def getKey(key: K): BAG[Option[K]]

    Returns target full key for the input partial key.

    Returns target full key for the input partial key.

    This function is mostly used for Set databases where partial ordering on the Key is provided.

    Definition Classes
    MultiMapMapTSetMapT
  33. def getKeyDeadline[BAG[_]](key: K, bag: Bag[BAG]): BAG[Option[(K, Option[Deadline])]]
    Definition Classes
    MultiMapMapT
  34. def getKeyDeadline(key: K): BAG[Option[(K, Option[Deadline])]]
    Definition Classes
    MultiMapMapT
  35. def getKeyValue(key: K): BAG[Option[(K, V)]]
    Definition Classes
    MultiMapMapTSetMapT
  36. def getKeyValueDeadline[BAG[_]](key: K, bag: Bag[BAG]): BAG[Option[((K, Option[Deadline]), V)]]
    Definition Classes
    MultiMapMapT
  37. def headOption: BAG[Option[(K, V)]]
    Definition Classes
    MultiMapMapTSetMapT
  38. def headOrNull: BAG[(K, V)]
    Definition Classes
    MultiMapMapTSetMapT
  39. def isEmpty: BAG[Boolean]
    Definition Classes
    MultiMapMapTSetMapT
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def iterator[BAG[_]](implicit bag: Sync[BAG]): Iterator[BAG[(K, V)]]
    Definition Classes
    MultiMapMapTSetMapT
  42. def keySize(key: K): Int
    Definition Classes
    MultiMapMapT
  43. def lastOption: BAG[Option[(K, V)]]
    Definition Classes
    MultiMapMapTSetMapT
  44. def levelMeter(levelNumber: Int): Option[LevelMeter]
    Definition Classes
    MultiMapMapTSetMapT
  45. def levelZeroMeter: LevelZeroMeter
    Definition Classes
    MultiMapMapTSetMapT
  46. val mapId: Long
  47. val mapKey: M
  48. def mightContain(key: K): BAG[Boolean]
    Definition Classes
    MultiMapMapTSetMapT
  49. def mightContainFunction[PF <: F](function: PF)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[Boolean]
    Definition Classes
    MultiMapMapT
  50. def narrow[M2, K2, V2, F2](mapKey: Class[M2], keyType: Class[K2], valueType: Class[V2], functionType: Class[F2])(implicit evT: <:<[M2, M], evK: <:<[K2, K], evV: <:<[V2, V], evF: <:<[F2, F]): MultiMap[M2, K2, V2, F2, BAG]

    Narrows this MultiMap's map key type M, key-value key type K, value type V and function type F.

  51. def narrow[M2, K2, V2](mapKey: Class[M2], keyType: Class[K2], valueType: Class[V2])(implicit evT: <:<[M2, M], evK: <:<[K2, K], evV: <:<[V2, V]): MultiMap[M2, K2, V2, F, BAG]

    Narrows this MultiMap's map key type M, key-value key type K and value type V

  52. def narrow[M2, K2](mapKey: Class[M2], keyType: Class[K2])(implicit evT: <:<[M2, M], evK: <:<[K2, K]): MultiMap[M2, K2, V, F, BAG]

    Narrows this MultiMap's map key type M and key-value key type K

  53. def narrow[M2](mapKey: Class[M2])(implicit evT: <:<[M2, M]): MultiMap[M2, K, V, F, BAG]

    Narrows this MultiMap's map key type M

  54. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. def nonEmpty: BAG[Boolean]
    Definition Classes
    MultiMapMapTSetMapT
  56. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  58. def path: Path
    Definition Classes
    MultiMapMapTSetMapT
  59. def put(keyValues: Iterator[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  60. def put(keyValues: Iterable[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  61. def put(keyValues: Stream[(K, V), BAG]): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  62. def put(keyValues: (K, V)*): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  63. def put(key: K, value: V, expireAt: Deadline): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  64. def put(key: K, value: V, expireAfter: FiniteDuration): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  65. def put(key: K, value: V): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  66. def put(key: K, value: V, expireAt: Option[Deadline]): BAG[OK]
    Definition Classes
    SetMapT
  67. def remove(keys: Iterator[K]): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  68. def remove(keys: Iterable[K]): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  69. def remove(keys: Stream[K, BAG]): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  70. def remove(keys: K*): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  71. def remove(from: K, to: K): BAG[OK]
    Definition Classes
    MultiMapMapT
  72. def remove(key: K): BAG[OK]
    Definition Classes
    MultiMapMapTSetMapT
  73. val schema: Schema[M, K, V, F, BAG]

    APIs for managing child map of this MultiMap.

  74. def sizeOfBloomFilterEntries: BAG[Int]
    Definition Classes
    MultiMapMapTSetMapT
  75. def sizeOfSegments: Long
    Definition Classes
    MultiMapMapTSetMapT
  76. def stream: Source[K, (K, V), BAG]
    Definition Classes
    MultiMapMapTSetMapT
  77. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  78. def timeLeft(key: K): BAG[Option[FiniteDuration]]
    Definition Classes
    MultiMapMapTSetMapT
  79. 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
    MultiMapMapTSetMapT
  80. def toString(): String
    Definition Classes
    MultiMapSetMapT → AnyRef → Any
  81. def toTransaction[PF <: F](prepare: Iterable[Prepare[K, V, PF]])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): Iterable[Transaction[M, K, V, PF]]

    Converts Prepare statement for this map into Prepare statement for this Map's parent Map so that multiple MultiMap Prepare statements can be executed as a single transaction.

    Converts Prepare statement for this map into Prepare statement for this Map's parent Map so that multiple MultiMap Prepare statements can be executed as a single transaction.

    See also

    MultiMap.commit to commit Transactions.

  82. def toTransaction[PF <: F](prepare: Stream[Prepare[K, V, PF], BAG])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[Iterable[Transaction[M, K, V, PF]]]

    Converts Prepare statement for this map into Prepare statement for this Map's parent Map so that multiple MultiMap Prepare statements can be executed as a single transaction.

    Converts Prepare statement for this map into Prepare statement for this Map's parent Map so that multiple MultiMap Prepare statements can be executed as a single transaction.

    See also

    MultiMap.commit to commit Transactions.

  83. def toTransaction[PF <: F](prepare: Prepare[K, V, PF]*)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): Seq[Transaction[M, K, V, PF]]

    Converts Prepare statement for this map into Prepare statement for this Map's parent Map so that multiple MultiMap Prepare statements can be executed as a single transaction.

    Converts Prepare statement for this map into Prepare statement for this Map's parent Map so that multiple MultiMap Prepare statements can be executed as a single transaction.

    See also

    MultiMap.commit to commit Transactions.

  84. def update(keyValues: Iterator[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  85. def update(keyValues: Iterable[(K, V)]): BAG[OK]
    Definition Classes
    MultiMapMapT
  86. def update(keyValues: Stream[(K, V), BAG]): BAG[OK]
    Definition Classes
    MultiMapMapT
  87. def update(keyValues: (K, V)*): BAG[OK]
    Definition Classes
    MultiMapMapT
  88. def update(from: K, to: K, value: V): BAG[OK]
    Definition Classes
    MultiMapMapT
  89. def update(key: K, value: V): BAG[OK]
    Definition Classes
    MultiMapMapT
  90. def valueSize(value: V): Int
    Definition Classes
    MultiMapMapT
  91. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. 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, F, BAG]

Inherited from AnyRef

Inherited from Any

Ungrouped