Packages

case class Map[K, V, W[_]](core: Core[W], from: Option[From[K]] = None, reverseIteration: Boolean = false)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], wrap: Wrap[W]) extends Streamer[(K, V), W] with Product with Serializable

Map database API.

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

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

Instance Constructors

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

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, W]
  5. def applyFunction(from: K, to: K, functionID: K): W[Level0Meter]
  6. def applyFunction(key: K, functionID: K): W[Level0Meter]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asScala: scala.collection.mutable.Map[K, V]
  9. def asyncAPI[O[_]](implicit ec: ExecutionContext, transform: FutureTransformer[O], wrap: Wrap[O]): Map[K, V, O]

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

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

    Wrapper will be built from FutureTransformer.

  10. def asyncAPI[O[_]](timeout: FiniteDuration)(implicit ec: ExecutionContext, transform: FutureTransformer[O]): Map[K, V, O]

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

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

    Wrapper will be built from FutureTransformer.

    timeout

    is used only when a async API gets converted into a blocking API otherwise it's always non-blocking.

  11. def before(key: K): Map[K, V, W]
  12. def blockingAPI[O[_]](implicit transform: IOTransformer[O], wrap: Wrap[O]): Map[K, V, O]

    Returns an blocking API of type O where the Wrap is known.

  13. def blockingAPI[O[_]](implicit transform: IOTransformer[O]): Map[K, V, O]

    Returns an blocking API of type O where the Wrap is not known.

    Returns an blocking API of type O where the Wrap is not known.

    Wrapper will be built from IOTransformer.

  14. def clear(): W[Level0Meter]
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  16. def closeDatabase(): W[Unit]
  17. def commit(prepare: Iterable[Prepare[K, V]]): W[Level0Meter]
  18. def commit(prepare: Stream[Prepare[K, V], W]): W[Level0Meter]
  19. def commit(prepare: Prepare[K, V]*): W[Level0Meter]
  20. def contains(key: K): W[Boolean]
  21. def drop(count: Int): Stream[(K, V), W]
    Definition Classes
    Map → Streamer
  22. def dropWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), W]
    Definition Classes
    Map → Streamer
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def expiration(key: K): W[Option[Deadline]]
  25. def expire(keys: Iterable[(K, Deadline)]): W[Level0Meter]
  26. def expire(keys: Stream[(K, Deadline), W]): W[Level0Meter]
  27. def expire(keys: (K, Deadline)*): W[Level0Meter]
  28. def expire(from: K, to: K, at: Deadline): W[Level0Meter]
  29. def expire(from: K, to: K, after: FiniteDuration): W[Level0Meter]
  30. def expire(key: K, at: Deadline): W[Level0Meter]
  31. def expire(key: K, after: FiniteDuration): W[Level0Meter]
  32. def filter(f: ((K, V)) ⇒ Boolean): Stream[(K, V), W]
    Definition Classes
    Map → Streamer
  33. def filterNot(f: ((K, V)) ⇒ Boolean): Stream[(K, V), W]
    Definition Classes
    Map → Streamer
  34. def foldLeft[B](initial: B)(f: (B, (K, V)) ⇒ B): W[B]
    Definition Classes
    Map → Streamer
  35. def foreach[U](f: ((K, V)) ⇒ U): Stream[Unit, W]
    Definition Classes
    Map → Streamer
  36. def from(key: K): Map[K, V, W]
  37. def fromOrAfter(key: K): Map[K, V, W]
  38. def fromOrBefore(key: K): Map[K, V, W]
  39. def get(key: K): W[Option[V]]

    Returns target value for the input key.

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

  42. def getKeyValue(key: K): W[Option[(K, V)]]
  43. def headOption: W[Option[(K, V)]]
    Definition Classes
    Map → Streamer
  44. def isEmpty: W[Boolean]
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def keySize(key: K): Int
  47. def keys: Set[K, W]
  48. def lastOption: W[Option[(K, V)]]
    Definition Classes
    Map → Streamer
  49. def level0Meter: Level0Meter
  50. def levelMeter(levelNumber: Int): Option[LevelMeter]
  51. def map[B](f: ((K, V)) ⇒ B): Stream[B, W]
    Definition Classes
    Map → Streamer
  52. def mightContain(key: K): W[Boolean]
  53. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. def nonEmpty: W[Boolean]
  55. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  56. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  57. def put(keyValues: Iterable[(K, V)]): W[Level0Meter]
  58. def put(keyValues: Stream[(K, V), W]): W[Level0Meter]
  59. def put(keyValues: (K, V)*): W[Level0Meter]
  60. def put(key: K, value: V, expireAt: Deadline): W[Level0Meter]
  61. def put(key: K, value: V, expireAfter: FiniteDuration): W[Level0Meter]
  62. def put(key: K, value: V): W[Level0Meter]
  63. def registerFunction(functionID: K, function: (K, V, Option[Deadline]) ⇒ Apply.Map[V]): K
  64. def registerFunction(functionID: K, function: (K, Option[Deadline]) ⇒ Apply.Map[V]): K
  65. def registerFunction(functionID: K, function: (V) ⇒ Apply.Map[V]): K
  66. def remove(keys: Iterable[K]): W[Level0Meter]
  67. def remove(keys: Stream[K, W]): W[Level0Meter]
  68. def remove(keys: K*): W[Level0Meter]
  69. def remove(from: K, to: K): W[Level0Meter]
  70. def remove(key: K): W[Level0Meter]
  71. def reverse: Map[K, V, W]
  72. def size: W[Int]
  73. def sizeOfSegments: Long
  74. def stream: Stream[(K, V), W]
  75. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  76. def take(count: Int): Stream[(K, V), W]
    Definition Classes
    Map → Streamer
  77. def takeWhile(f: ((K, V)) ⇒ Boolean): Stream[(K, V), W]
    Definition Classes
    Map → Streamer
  78. def timeLeft(key: K): W[Option[FiniteDuration]]
  79. def toString(): String
    Definition Classes
    Map → AnyRef → Any
  80. def update(keyValues: Iterable[(K, V)]): W[Level0Meter]
  81. def update(keyValues: Stream[(K, V), W]): W[Level0Meter]
  82. def update(keyValues: (K, V)*): W[Level0Meter]
  83. def update(from: K, to: K, value: V): W[Level0Meter]
  84. def update(key: K, value: V): W[Level0Meter]
  85. def valueSize(value: V): Int
  86. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  87. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  88. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. def wrapCall[C](f: ⇒ W[C]): W[C]

Deprecated Value Members

  1. def finalize(): Unit
    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 Streamer[(K, V), W]

Inherited from AnyRef

Inherited from Any

Ungrouped