Packages

o

swaydb

SwayDB

object SwayDB extends LazyLogging

Instance used for creating/initialising databases.

Linear Supertypes
LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SwayDB
  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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[T](config: LevelZeroConfig)(implicit serializer: Serializer[T], keyOrder: KeyOrder[Slice[Byte]], ec: ExecutionContext): IO[Set[T, IO]]
  5. def apply[T](config: SwayDBMemoryConfig, cacheSize: Int, cacheCheckDelay: FiniteDuration)(implicit serializer: Serializer[T], keyOrder: KeyOrder[Slice[Byte]], ec: ExecutionContext): IO[Set[T, IO]]
  6. def apply[K, V](config: SwayDBMemoryConfig, cacheSize: Int, cacheCheckDelay: FiniteDuration)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], keyOrder: KeyOrder[Slice[Byte]], ec: ExecutionContext): IO[Map[K, V, IO]]
  7. def apply[T](config: SwayDBPersistentConfig, maxSegmentsOpen: Int, cacheSize: Int, cacheCheckDelay: FiniteDuration, segmentsOpenCheckDelay: FiniteDuration)(implicit serializer: Serializer[T], keyOrder: KeyOrder[Slice[Byte]], ec: ExecutionContext): IO[Set[T, IO]]
  8. def apply[K, V](config: SwayDBPersistentConfig, maxSegmentsOpen: Int, cacheSize: Int, cacheCheckDelay: FiniteDuration, segmentsOpenCheckDelay: FiniteDuration)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], keyOrder: KeyOrder[Slice[Byte]], ec: ExecutionContext): IO[Map[K, V, IO]]

    Creates a database based on the input config.

    Creates a database based on the input config.

    K

    Type of key

    V

    Type of value

    config

    Configuration to use to create the database

    maxSegmentsOpen

    Number of concurrent opened Segments

    cacheSize

    Size of in-memory key-values. For Memory database this set the size of uncompressed key-values. If compression is used for memory database the this field can be ignored.

    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. If compression is not used for memory database the this field can be ignored.

    segmentsOpenCheckDelay

    For persistent Levels only. This can property is not used for databases. Sets the max interval at which Segments get closed. The delays are dynamically adjusted based on the current number of open Segments.

    keySerializer

    Converts keys to Bytes

    valueSerializer

    Converts values to Bytes

    keyOrder

    Sort order for keys

    ec

    ExecutionContext

    returns

    Database instance

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  11. def defaultExecutionContext: ExecutionContext { val threadPool: java.util.concurrent.ForkJoinPool }

    Default execution context for all databases.

    Default execution context for all databases.

    This can be overridden by provided an implicit parameter in the scope of where the database is initialized.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
    Annotations
    @transient()
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def repairAppendix[K](levelPath: Path, repairStrategy: AppendixRepairStrategy)(implicit serializer: Serializer[K], fileLimiter: FileLimiter, keyOrder: KeyOrder[Slice[Byte]] = KeyOrder.default, ec: ExecutionContext = defaultExecutionContext): IO[RepairResult[K]]

    Documentation: http://www.swaydb.io/api/repairAppendix

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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 LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped