Class

swaydb.core.map

PersistentMap

Related Doc: package map

Permalink

case class PersistentMap[OK, OV, K <: OK, V <: OV](path: Path, mmap: data.config.MMAP.Map, fileSize: Long, flushOnOverflow: Boolean, _skipList: SkipListConcurrent[OK, OV, K, V], currentFile: DBFile, hasRangeInitial: Boolean)(implicit keyOrder: KeyOrder[K], timeOrder: TimeOrder[Slice[Byte]], fileSweeper: FileSweeperActor, bufferCleaner: ByteBufferSweeperActor, functionStore: FunctionStore, writer: MapEntryWriter[Put[K, V]], skipListMerger: SkipListMerger[OK, OV, K, V]) extends Map[OK, OV, K, V] with LazyLogging with Product with Serializable

Attributes
protected
Linear Supertypes
Serializable, Serializable, Product, Equals, LazyLogging, Map[OK, OV, K, V], SkipListBase[OK, OV, K, V, ConcurrentSkipListMap[K, V]], SkipList[OK, OV, K, V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentMap
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LazyLogging
  7. Map
  8. SkipListBase
  9. SkipList
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PersistentMap(path: Path, mmap: data.config.MMAP.Map, fileSize: Long, flushOnOverflow: Boolean, _skipList: SkipListConcurrent[OK, OV, K, V], currentFile: DBFile, hasRangeInitial: Boolean)(implicit keyOrder: KeyOrder[K], timeOrder: TimeOrder[Slice[Byte]], fileSweeper: FileSweeperActor, bufferCleaner: ByteBufferSweeperActor, functionStore: FunctionStore, writer: MapEntryWriter[Put[K, V]], skipListMerger: SkipListMerger[OK, OV, K, V])

    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. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    SkipListBase → SkipList
  6. implicit val bufferCleaner: ByteBufferSweeperActor

    Permalink
  7. def ceiling(key: K): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  8. def ceilingKey(key: K): OK

    Permalink
    Definition Classes
    SkipListBase → SkipList
  9. def clear(): Unit

    Permalink
    Definition Classes
    SkipListBase → SkipList
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    PersistentMap → Map
  12. def contains(key: K): Boolean

    Permalink
    Definition Classes
    SkipListBase → SkipList
  13. def count(): Int

    Permalink
    Definition Classes
    SkipListBase → SkipList
  14. def currentFilePath: Path

    Permalink
  15. def delete: Unit

    Permalink
    Definition Classes
    PersistentMap → Map
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def exists: Boolean

    Permalink
    Definition Classes
    PersistentMap → Map
  18. val fileSize: Long

    Permalink
    Definition Classes
    PersistentMap → Map
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def floor(key: K): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  21. def floorKeyValue(key: K): Option[(K, V)]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  22. val flushOnOverflow: Boolean

    Permalink
  23. def foldLeft[R](r: R)(f: (R, (K, V)) ⇒ R): R

    Permalink
    Definition Classes
    SkipListBase → SkipList
  24. def foreach[R](f: (K, V) ⇒ R): Unit

    Permalink
    Definition Classes
    SkipListBase → SkipList
  25. def get(key: K): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hasRange: Boolean

    Permalink
    Definition Classes
    PersistentMap → Map
  28. def head(): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  29. def headKey: OK

    Permalink
    Definition Classes
    SkipListBase → SkipList
  30. def headKeyOrNull: K

    Permalink
    Definition Classes
    SkipListBase
  31. def headKeyValue: Option[(K, V)]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  32. def higher(key: K): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  33. def higherKey(key: K): OK

    Permalink
    Definition Classes
    SkipListBase → SkipList
  34. def higherKeyValue(key: K): Option[(K, V)]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  35. def isEmpty: Boolean

    Permalink
    Definition Classes
    SkipListBase → SkipList
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. def keys(): NavigableSet[K]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  38. def last(): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  39. def lastKey: OK

    Permalink
    Definition Classes
    SkipListBase → SkipList
  40. def lastKeyOrNull: K

    Permalink
    Definition Classes
    SkipListBase
  41. def lastKeyValue: Option[(K, V)]

    Permalink
    Definition Classes
    SkipListBase
  42. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  43. def lower(key: K): OV

    Permalink
    Definition Classes
    SkipListBase → SkipList
  44. def lowerKey(key: K): OK

    Permalink
    Definition Classes
    SkipListBase → SkipList
  45. val mmap: data.config.MMAP.Map

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

    Permalink
    Definition Classes
    AnyRef
  47. def nonEmpty: Boolean

    Permalink
    Definition Classes
    SkipListBase → SkipList
  48. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  49. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. def nullKey: OK

    Permalink
    Definition Classes
    PersistentMap → SkipList
  51. def nullValue: OV

    Permalink
    Definition Classes
    PersistentMap → SkipList
  52. val path: Path

    Permalink
  53. def pathOption: Option[Path]

    Permalink
    Definition Classes
    PersistentMap → Map
  54. def pollFirstEntry(): Entry[K, V]

    Permalink
    Definition Classes
    SkipListBase
  55. def pollLastEntry(): Entry[K, V]

    Permalink
    Definition Classes
    SkipListBase
  56. def put(key: K, value: V): Unit

    Permalink
    Definition Classes
    SkipListBase → SkipList
  57. def putIfAbsent(key: K, value: V): Boolean

    Permalink

    returns

    true

    Definition Classes
    SkipListBase → SkipList
  58. def remove(key: K): Unit

    Permalink
    Definition Classes
    SkipListBase → SkipList
  59. def size: Int

    Permalink
    Definition Classes
    SkipListBase → SkipList
  60. def skipList: ConcurrentSkipListMap[K, V]

    Permalink
    Attributes
    protected
    Definition Classes
    PersistentMap → SkipListBase
  61. var skipListKeyValuesMaxCount: Int

    Permalink
    Definition Classes
    PersistentMap → Map
  62. def subMap(from: K, fromInclusive: Boolean, to: K, toInclusive: Boolean): NavigableMap[K, V]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  63. def subMap(from: K, to: K): NavigableMap[K, V]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  65. def take(count: Int): Slice[V]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  66. final def toOptionKey(key: K): OK

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  67. final def toOptionKeyValue(entry: Entry[K, V]): Option[(K, V)]

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  68. final def toOptionValue(value: V): OV

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  69. final def toOptionValue(entry: Entry[K, V]): OV

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  70. def toSlice[V2 >: V](size: Int)(implicit arg0: ClassTag[V2]): Slice[V2]

    Permalink
    Definition Classes
    SkipListBase
  71. final def tryOptionKey(block: ⇒ K): OK

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  72. final def tryOptionKeyValue(block: ⇒ Entry[K, V]): Option[(K, V)]

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  73. final def tryOptionValue(block: ⇒ Entry[K, V]): OV

    Permalink
    Definition Classes
    SkipList
    Annotations
    @inline()
  74. val uniqueFileNumber: Long

    Permalink
    Definition Classes
    PersistentMap → Map
  75. def values(): Collection[V]

    Permalink
    Definition Classes
    SkipListBase → SkipList
  76. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. final def writeNoSync(entry: MapEntry[K, V]): Boolean

    Permalink

    Before writing the Entry, check to ensure if the current MapEntry requires a merge write or direct write.

    Before writing the Entry, check to ensure if the current MapEntry requires a merge write or direct write.

    Merge write should be used when - The entry contains a swaydb.core.data.Memory.Range key-value. - The entry contains a swaydb.core.data.Memory.Update Update key-value. - The entry contains a swaydb.core.data.Memory.Remove with deadline key-value. Removes without deadlines do not require merging.

    Note: These check are not required for Appendix writes because Appendix entries current do not use Range, Update or key-values with deadline.

    Definition Classes
    PersistentMap → Map
    Annotations
    @tailrec()
  80. def writeSafe[E](mapEntry: MapEntry[K, V])(implicit arg0: ExceptionHandler[E]): IO[E, Boolean]

    Permalink
    Definition Classes
    Map
  81. def writeSync(mapEntry: MapEntry[K, V]): Boolean

    Permalink
    Definition Classes
    PersistentMap → Map

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from Map[OK, OV, K, V]

Inherited from SkipListBase[OK, OV, K, V, ConcurrentSkipListMap[K, V]]

Inherited from SkipList[OK, OV, K, V]

Inherited from AnyRef

Inherited from Any

Ungrouped