Packages

case class Map[K, V, T[_]](core: Core[T], from: Option[From[K]] = None, reverseIteration: Boolean = false)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], tag: Tag[T]) extends Streamable[(K, V), T] with Product with Serializable

Map database API.

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

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

Instance Constructors

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

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, T]
  5. def applyFunction(from: K, to: K, functionID: K): T[Done]
  6. def applyFunction(key: K, functionID: K): T[Done]
  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, T]
  10. def clear(): T[Done]
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  12. def close(): T[Unit]
  13. def commit(prepare: Iterable[Prepare[K, V]]): T[Done]
  14. def commit(prepare: Stream[Prepare[K, V], T]): T[Done]
  15. def commit(prepare: Prepare[K, V]*): T[Done]
  16. def contains(key: K): T[Boolean]
  17. def delete(): T[Unit]
  18. def drop(count: Int): Stream[(K, V), T]
    Definition Classes
    Map → Streamable
  19. def dropWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]
    Definition Classes
    Map → Streamable
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def expiration(key: K): T[Option[Deadline]]
  22. def expire(keys: Iterable[(K, Deadline)]): T[Done]
  23. def expire(keys: Stream[(K, Deadline), T]): T[Done]
  24. def expire(keys: (K, Deadline)*): T[Done]
  25. def expire(from: K, to: K, at: Deadline): T[Done]
  26. def expire(from: K, to: K, after: FiniteDuration): T[Done]
  27. def expire(key: K, at: Deadline): T[Done]
  28. def expire(key: K, after: FiniteDuration): T[Done]
  29. def filter(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]
    Definition Classes
    Map → Streamable
  30. def filterNot(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]
    Definition Classes
    Map → Streamable
  31. def flatMap[B](f: ((K, V)) ⇒ Stream[B, T]): Stream[B, T]
    Definition Classes
    Map → Streamable
  32. def foldLeft[B](initial: B)(f: (B, (K, V)) ⇒ B): T[B]
    Definition Classes
    Map → Streamable
  33. def foreach[U](f: ((K, V)) ⇒ U): Stream[Unit, T]
    Definition Classes
    Map → Streamable
  34. def from(key: K): Map[K, V, T]
  35. def fromOrAfter(key: K): Map[K, V, T]
  36. def fromOrBefore(key: K): Map[K, V, T]
  37. def get(key: K): T[Option[V]]

    Returns target value for the input key.

  38. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def getKey(key: K): T[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.

  40. def getKeyValue(key: K): T[Option[(K, V)]]
  41. def headOption: T[Option[(K, V)]]
    Definition Classes
    Map → Streamable
  42. def isEmpty: T[Boolean]
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. def keySize(key: K): Int
  45. def keys: Set[K, T]
  46. def lastOption: T[Option[(K, V)]]
    Definition Classes
    Map → Streamable
  47. def level0Meter: LevelZeroMeter
  48. def levelMeter(levelNumber: Int): Option[LevelMeter]
  49. def map[B](f: ((K, V)) ⇒ B): Stream[B, T]
    Definition Classes
    Map → Streamable
  50. def mightContain(key: K): T[Boolean]
  51. def mightContainFunction(functionId: K): T[Boolean]
  52. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. def nonEmpty: T[Boolean]
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  56. def put(keyValues: Iterable[(K, V)]): T[Done]
  57. def put(keyValues: Stream[(K, V), T]): T[Done]
  58. def put(keyValues: (K, V)*): T[Done]
  59. def put(key: K, value: V, expireAt: Deadline): T[Done]
  60. def put(key: K, value: V, expireAfter: FiniteDuration): T[Done]
  61. def put(key: K, value: V): T[Done]
  62. def registerFunction(functionID: K, function: (K, V, Option[Deadline]) ⇒ Apply.Map[V]): K
  63. def registerFunction(functionID: K, function: (K, Option[Deadline]) ⇒ Apply.Map[V]): K
  64. def registerFunction(functionID: K, function: (V) ⇒ Apply.Map[V]): K
  65. def remove(keys: Iterable[K]): T[Done]
  66. def remove(keys: Stream[K, T]): T[Done]
  67. def remove(keys: K*): T[Done]
  68. def remove(from: K, to: K): T[Done]
  69. def remove(key: K): T[Done]
  70. def reverse: Map[K, V, T]
  71. def size: T[Int]
    Definition Classes
    Map → Streamable
  72. def sizeOfBloomFilterEntries: T[Int]
  73. def sizeOfSegments: Long
  74. def stream: Stream[(K, V), T]
  75. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  76. def take(count: Int): Stream[(K, V), T]
    Definition Classes
    Map → Streamable
  77. def takeWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]
    Definition Classes
    Map → Streamable
  78. def timeLeft(key: K): T[Option[FiniteDuration]]
  79. def toString(): String
    Definition Classes
    Map → AnyRef → Any
  80. def toTag[X[_]](implicit tag: Tag[X]): Map[K, V, X]

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

  81. def update(keyValues: Iterable[(K, V)]): T[Done]
  82. def update(keyValues: Stream[(K, V), T]): T[Done]
  83. def update(keyValues: (K, V)*): T[Done]
  84. def update(from: K, to: K, value: V): T[Done]
  85. def update(key: K, value: V): T[Done]
  86. def valueSize(value: V): Int
  87. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  89. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Streamable[(K, V), T]

Inherited from AnyRef

Inherited from Any

Ungrouped