Packages

case class Map[K, V, F, BAG[_]](core: Core[BAG], from: Option[From[K]] = None, reverseIteration: Boolean = false)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], bag: Bag[BAG]) extends Product with Serializable

Map database API.

For documentation check - http://swaydb.io/bag/

Self Type
Map[K, V, F, BAG]
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Map
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Map(core: Core[BAG], from: Option[From[K]] = None, reverseIteration: Boolean = false)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], bag: Bag[BAG])

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): Map[K, V, F, BAG]
  5. def applyFunction[PF <: F](from: K, to: K, function: PF)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
  6. def applyFunction[PF <: F](key: K, function: PF)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asScala: scala.collection.mutable.Map[K, V]
  9. def before(key: K): Map[K, V, F, BAG]
  10. def clear(): BAG[OK]
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def close(): BAG[Unit]
  13. def commit[PF <: F](prepare: Iterable[Prepare[K, V, PF]])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
  14. def commit[PF <: F](prepare: Stream[Prepare[K, V, PF]])(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
  15. def commit[PF <: F](prepare: Prepare[K, V, PF]*)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
  16. def contains(key: K): BAG[Boolean]
  17. def delete(): BAG[Unit]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def expiration(key: K): BAG[Option[Deadline]]
  20. def expire(keys: Iterator[(K, Deadline)]): BAG[OK]
  21. def expire(keys: Iterable[(K, Deadline)]): BAG[OK]
  22. def expire(keys: Stream[(K, Deadline)]): BAG[OK]
  23. def expire(keys: (K, Deadline)*): BAG[OK]
  24. def expire(from: K, to: K, at: Deadline): BAG[OK]
  25. def expire(from: K, to: K, after: FiniteDuration): BAG[OK]
  26. def expire(key: K, at: Deadline): BAG[OK]
  27. def expire(key: K, after: FiniteDuration): BAG[OK]
  28. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def from(key: K): Map[K, V, F, BAG]
  30. def fromOrAfter(key: K): Map[K, V, F, BAG]
  31. def fromOrBefore(key: K): Map[K, V, F, BAG]
  32. def get(key: K): BAG[Option[V]]

    Returns target value for the input key.

  33. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. 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.

  35. def getKeyValue(key: K): BAG[Option[(K, V)]]
  36. def headOption: BAG[Option[(K, V)]]
  37. def isEmpty: BAG[Boolean]
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def iterator[BAG[_]](implicit bag: Sync[BAG]): Iterator[BAG[(K, V)]]
  40. def keySize(key: K): Int
  41. def keys: Set[K, F, BAG]
  42. def lastOption: BAG[Option[(K, V)]]
  43. def levelMeter(levelNumber: Int): Option[LevelMeter]
  44. def levelZeroMeter: LevelZeroMeter
  45. def mightContain(key: K): BAG[Boolean]
  46. def mightContainFunction(functionId: K): BAG[Boolean]
  47. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. def nonEmpty: BAG[Boolean]
  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. def put(keyValues: Iterator[(K, V)]): BAG[OK]
  52. def put(keyValues: Iterable[(K, V)]): BAG[OK]
  53. def put(keyValues: Stream[(K, V)]): BAG[OK]
  54. def put(keyValues: (K, V)*): BAG[OK]
  55. def put(key: K, value: V, expireAt: Deadline): BAG[OK]
  56. def put(key: K, value: V, expireAfter: FiniteDuration): BAG[OK]
  57. def put(key: K, value: V): BAG[OK]
  58. def registerFunction[PF <: F](function: PF)(implicit ev: <:<[PF, PureFunction[K, V, Apply.Map[V]]]): BAG[OK]
  59. def remove(keys: Iterator[K]): BAG[OK]
  60. def remove(keys: Iterable[K]): BAG[OK]
  61. def remove(keys: Stream[K]): BAG[OK]
  62. def remove(keys: K*): BAG[OK]
  63. def remove(from: K, to: K): BAG[OK]
  64. def remove(key: K): BAG[OK]
  65. def reverse: Map[K, V, F, BAG]
  66. def sizeOfBloomFilterEntries: BAG[Int]
  67. def sizeOfSegments: Long
  68. def stream: Stream[(K, V)]
  69. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  70. def timeLeft(key: K): BAG[Option[FiniteDuration]]
  71. def toBag[X[_]](implicit bag: Bag[X]): Map[K, V, F, X]

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

  72. def toString(): String
    Definition Classes
    Map → AnyRef → Any
  73. def update(keyValues: Iterator[(K, V)]): BAG[OK]
  74. def update(keyValues: Iterable[(K, V)]): BAG[OK]
  75. def update(keyValues: Stream[(K, V)]): BAG[OK]
  76. def update(keyValues: (K, V)*): BAG[OK]
  77. def update(from: K, to: K, value: V): BAG[OK]
  78. def update(key: K, value: V): BAG[OK]
  79. def valueSize(value: V): Int
  80. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. 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 AnyRef

Inherited from Any

Ungrouped