Class

swaydb

Map

Related Doc: package swaydb

Permalink

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])

    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): Map[K, V, T]

    Permalink
  5. def applyFunction(from: K, to: K, functionID: K): T[Done]

    Permalink
  6. def applyFunction(key: K, functionID: K): T[Done]

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asScala: scala.collection.mutable.Map[K, V]

    Permalink
  9. def before(key: K): Map[K, V, T]

    Permalink
  10. def clear(): T[Done]

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  12. def close(): T[Unit]

    Permalink
  13. def commit(prepare: Iterable[Prepare[K, V]]): T[Done]

    Permalink
  14. def commit(prepare: Stream[Prepare[K, V], T]): T[Done]

    Permalink
  15. def commit(prepare: Prepare[K, V]*): T[Done]

    Permalink
  16. def contains(key: K): T[Boolean]

    Permalink
  17. def delete(): T[Unit]

    Permalink
  18. def drop(count: Int): Stream[(K, V), T]

    Permalink
    Definition Classes
    Map → Streamable
  19. def dropWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]

    Permalink
    Definition Classes
    Map → Streamable
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def expiration(key: K): T[Option[Deadline]]

    Permalink
  22. def expire(keys: Iterable[(K, Deadline)]): T[Done]

    Permalink
  23. def expire(keys: Stream[(K, Deadline), T]): T[Done]

    Permalink
  24. def expire(keys: (K, Deadline)*): T[Done]

    Permalink
  25. def expire(from: K, to: K, at: Deadline): T[Done]

    Permalink
  26. def expire(from: K, to: K, after: FiniteDuration): T[Done]

    Permalink
  27. def expire(key: K, at: Deadline): T[Done]

    Permalink
  28. def expire(key: K, after: FiniteDuration): T[Done]

    Permalink
  29. def filter(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]

    Permalink
    Definition Classes
    Map → Streamable
  30. def filterNot(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]

    Permalink
    Definition Classes
    Map → Streamable
  31. def flatMap[B](f: ((K, V)) ⇒ Stream[B, T]): Stream[B, T]

    Permalink
    Definition Classes
    Map → Streamable
  32. def foldLeft[B](initial: B)(f: (B, (K, V)) ⇒ B): T[B]

    Permalink
    Definition Classes
    Map → Streamable
  33. def foreach[U](f: ((K, V)) ⇒ U): Stream[Unit, T]

    Permalink
    Definition Classes
    Map → Streamable
  34. def from(key: K): Map[K, V, T]

    Permalink
  35. def fromOrAfter(key: K): Map[K, V, T]

    Permalink
  36. def fromOrBefore(key: K): Map[K, V, T]

    Permalink
  37. def get(key: K): T[Option[V]]

    Permalink

    Returns target value for the input key.

  38. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  39. def getKey(key: K): T[Option[K]]

    Permalink

    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)]]

    Permalink
  41. def headOption: T[Option[(K, V)]]

    Permalink
    Definition Classes
    Map → Streamable
  42. def isEmpty: T[Boolean]

    Permalink
  43. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  44. def keySize(key: K): Int

    Permalink
  45. def keys: Set[K, T]

    Permalink
  46. def lastOption: T[Option[(K, V)]]

    Permalink
    Definition Classes
    Map → Streamable
  47. def level0Meter: LevelZeroMeter

    Permalink
  48. def levelMeter(levelNumber: Int): Option[LevelMeter]

    Permalink
  49. def map[B](f: ((K, V)) ⇒ B): Stream[B, T]

    Permalink
    Definition Classes
    Map → Streamable
  50. def mightContain(key: K): T[Boolean]

    Permalink
  51. def mightContainFunction(functionId: K): T[Boolean]

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

    Permalink
    Definition Classes
    AnyRef
  53. def nonEmpty: T[Boolean]

    Permalink
  54. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  56. def put(keyValues: Iterable[(K, V)]): T[Done]

    Permalink
  57. def put(keyValues: Stream[(K, V), T]): T[Done]

    Permalink
  58. def put(keyValues: (K, V)*): T[Done]

    Permalink
  59. def put(key: K, value: V, expireAt: Deadline): T[Done]

    Permalink
  60. def put(key: K, value: V, expireAfter: FiniteDuration): T[Done]

    Permalink
  61. def put(key: K, value: V): T[Done]

    Permalink
  62. def registerFunction(functionID: K, function: (K, V, Option[Deadline]) ⇒ Apply.Map[V]): K

    Permalink
  63. def registerFunction(functionID: K, function: (K, Option[Deadline]) ⇒ Apply.Map[V]): K

    Permalink
  64. def registerFunction(functionID: K, function: (V) ⇒ Apply.Map[V]): K

    Permalink
  65. def remove(keys: Iterable[K]): T[Done]

    Permalink
  66. def remove(keys: Stream[K, T]): T[Done]

    Permalink
  67. def remove(keys: K*): T[Done]

    Permalink
  68. def remove(from: K, to: K): T[Done]

    Permalink
  69. def remove(key: K): T[Done]

    Permalink
  70. def reverse: Map[K, V, T]

    Permalink
  71. def size: T[Int]

    Permalink
    Definition Classes
    Map → Streamable
  72. def sizeOfBloomFilterEntries: T[Int]

    Permalink
  73. def sizeOfSegments: Long

    Permalink
  74. def stream: Stream[(K, V), T]

    Permalink
  75. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  76. def take(count: Int): Stream[(K, V), T]

    Permalink
    Definition Classes
    Map → Streamable
  77. def takeWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), T]

    Permalink
    Definition Classes
    Map → Streamable
  78. def timeLeft(key: K): T[Option[FiniteDuration]]

    Permalink
  79. def toString(): String

    Permalink
    Definition Classes
    Map → AnyRef → Any
  80. def toTag[X[_]](implicit tag: Tag[X]): Map[K, V, X]

    Permalink

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

  81. def update(keyValues: Iterable[(K, V)]): T[Done]

    Permalink
  82. def update(keyValues: Stream[(K, V), T]): T[Done]

    Permalink
  83. def update(keyValues: (K, V)*): T[Done]

    Permalink
  84. def update(from: K, to: K, value: V): T[Done]

    Permalink
  85. def update(key: K, value: V): T[Done]

    Permalink
  86. def valueSize(value: V): Int

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. 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 Streamable[(K, V), T]

Inherited from AnyRef

Inherited from Any

Ungrouped