Object

swaydb.persistent

Map

Related Doc: package persistent

Permalink

object Map extends LazyLogging

Linear Supertypes
LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Map
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 apply[K, V](dir: Path, maxOpenSegments: Int = 1000, memoryCacheSize: Int = 100.mb, blockSize: Int = 4098, mapSize: Int = 4.mb, mmapMaps: Boolean = true, recoveryMode: RecoveryMode = RecoveryMode.ReportFailure, mmapAppendix: Boolean = true, mmapSegments: MMAP = MMAP.WriteAndRead, segmentSize: Int = 2.mb, appendixFlushCheckpointSize: Int = 2.mb, otherDirs: Seq[Dir] = Seq.empty, memorySweeperPollInterval: FiniteDuration = 10.seconds, fileSweeperPollInterval: FiniteDuration = 10.seconds, mightContainFalsePositiveRate: Double = 0.01, compressDuplicateValues: Boolean = true, deleteSegmentsEventually: Boolean = false, lastLevelGroupBy: Option[KeyValues] = Some(DefaultGroupBy()), acceleration: (LevelZeroMeter) ⇒ Accelerator = Accelerator.noBrakes())(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], keyOrder: KeyOrder[Slice[Byte]] = KeyOrder.default, fileSweeperEC: ExecutionContext = SwayDB.defaultExecutionContext, memorySweeperEC: ExecutionContext = SwayDB.defaultExecutionContext): IO[Boot, Map[K, V, ApiIO]]

    Permalink

    A pre-configured, 8 Leveled, persistent database where Level1 accumulates a minimum of 10 Segments before pushing Segments to lower Level.

    A pre-configured, 8 Leveled, persistent database where Level1 accumulates a minimum of 10 Segments before pushing Segments to lower Level.

    For custom configurations read documentation on website: http://www.swaydb.io/configuring-levels

    K

    Type of key

    V

    Type of value

    dir

    Root directory for all Level where appendix folder & files are created

    maxOpenSegments

    Number of concurrent Segments opened

    memoryCacheSize

    Size of in-memory key-values

    mapSize

    Size of LevelZero's maps (WAL)

    mmapMaps

    Memory-maps LevelZero maps files if set to true else reverts java.nio.FileChannel

    mmapAppendix

    Memory-maps Levels appendix files if set to true else reverts java.nio.FileChannel

    mmapSegments

    Memory-maps Levels Segment files if set to true else reverts java.nio.FileChannel

    segmentSize

    Minimum size of Segment files in each Level

    appendixFlushCheckpointSize

    Size of the appendix file before it's flushed. Appendix files are append only log files. Flushing removes deleted entries in the file hence reducing the size of the file.

    otherDirs

    Secondary directories for all Levels where Segments value distributed.

    memorySweeperPollInterval

    Sets the max interval at which key-values value dropped from the cache. The delays are dynamically adjusted based on the current size of the cache to stay close the set cacheSize.

    fileSweeperPollInterval

    Sets the max interval at which Segments value closed. The delays are dynamically adjusted based on the current number of open Segments.

    acceleration

    Controls the write speed.

    keySerializer

    Converts keys to Bytes

    valueSerializer

    Converts values to Bytes

    keyOrder

    Sort order for keys

    fileSweeperEC

    ExecutionContext

    returns

    Database instance

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. implicit val functionStore: FunctionStore

    Permalink
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. implicit val timeOrder: TimeOrder[Slice[Byte]]

    Permalink
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. 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 LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped