object Map extends LazyLogging
- Alphabetic
- By Inheritance
- Map
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[K, V](dir: Path, maxOpenSegments: Int = 1000, cacheSize: Int = 100.mb, 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, cacheCheckDelay: FiniteDuration = 5.seconds, segmentsOpenCheckDelay: FiniteDuration = 5.seconds, bloomFilterFalsePositiveRate: Double = 0.01, compressDuplicateValues: Boolean = true, deleteSegmentsEventually: Boolean = false, lastLevelGroupingStrategy: Option[KeyValueGroupingStrategy] = Some(DefaultGroupingStrategy()), acceleration: (Level0Meter) ⇒ Accelerator = Accelerator.noBrakes())(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], keyOrder: KeyOrder[Slice[Byte]] = KeyOrder.default, ec: ExecutionContext = SwayDB.defaultExecutionContext): IO[Map[K, V, IO]]
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
- cacheSize
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 get distributed.
- cacheCheckDelay
Sets the max interval at which key-values get dropped from the cache. The delays are dynamically adjusted based on the current size of the cache to stay close the set cacheSize.
- segmentsOpenCheckDelay
Sets the max interval at which Segments get 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
- ec
ExecutionContext
- returns
Database instance
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val functionStore: FunctionStore
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- implicit val timeOrder: TimeOrder[Slice[Byte]]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )