Packages

c

swaydb.core.map

PersistentMap

case class PersistentMap[K, V, C <: MapCache[K, V]](path: Path, mmap: data.config.MMAP.Map, fileSize: Long, flushOnOverflow: Boolean, cache: C, currentFile: DBFile)(implicit fileSweeper: FileSweeperActor, bufferCleaner: ByteBufferSweeperActor, writer: MapEntryWriter[Put[K, V]], forceSaveApplier: ForceSaveApplier) extends Map[K, V, C] with LazyLogging with Product with Serializable

Attributes
protected
Linear Supertypes
Serializable, Product, Equals, LazyLogging, Map[K, V, C], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentMap
  2. Serializable
  3. Product
  4. Equals
  5. LazyLogging
  6. Map
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PersistentMap(path: Path, mmap: data.config.MMAP.Map, fileSize: Long, flushOnOverflow: Boolean, cache: C, currentFile: DBFile)(implicit fileSweeper: FileSweeperActor, bufferCleaner: ByteBufferSweeperActor, writer: MapEntryWriter[Put[K, V]], forceSaveApplier: ForceSaveApplier)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. implicit val bufferCleaner: ByteBufferSweeperActor
  6. val cache: C
    Definition Classes
    PersistentMap → Map
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def close(): Unit
    Definition Classes
    PersistentMap → Map
  9. def currentFilePath: Path
  10. def delete: Unit
    Definition Classes
    PersistentMap → Map
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(obj: Any): Boolean
    Definition Classes
    Map → AnyRef → Any
  13. def exists: Boolean
    Definition Classes
    PersistentMap → Map
  14. val fileSize: Long
    Definition Classes
    PersistentMap → Map
  15. implicit val fileSweeper: FileSweeperActor
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. val flushOnOverflow: Boolean
  18. implicit val forceSaveApplier: ForceSaveApplier
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    Map → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
    Annotations
    @transient()
  23. val mmap: data.config.MMAP.Map
    Definition Classes
    PersistentMap → Map
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. val path: Path
  28. def pathOption: Option[Path]
    Definition Classes
    PersistentMap → Map
  29. def productElementNames: Iterator[String]
    Definition Classes
    Product
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    Map → AnyRef → Any
  32. def typeName: String
  33. val uniqueFileNumber: Long
    Definition Classes
    PersistentMap → Map
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def writeNoSync(entry: MapEntry[K, V]): Boolean

    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()
  38. def writeSafe[E](mapEntry: MapEntry[K, V])(implicit arg0: ExceptionHandler[E]): IO[E, Boolean]
    Definition Classes
    Map
  39. def writeSync(mapEntry: MapEntry[K, V]): Boolean
    Definition Classes
    PersistentMap → Map
  40. implicit val writer: MapEntryWriter[Put[K, V]]

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from Map[K, V, C]

Inherited from AnyRef

Inherited from Any

Ungrouped