object SwayDB extends LazyLogging
Instance used for creating/initialising databases.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SwayDB
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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[T, F](config: MemoryLevelZeroConfig)(implicit serializer: Serializer[T], keyOrder: KeyOrder[Slice[Byte]]): IO[Boot, Set[T, F, Less]]
- def apply[T, F](config: PersistentLevelZeroConfig)(implicit serializer: Serializer[T], keyOrder: KeyOrder[Slice[Byte]], mmapCleanerEC: Option[ExecutionContext]): IO[Boot, Set[T, F, Less]]
- def apply[T, F](config: SwayDBMemoryConfig, fileCache: Enable, memoryCache: MemoryCache, threadStateCache: ThreadStateCache, cacheKeyValueIds: Boolean)(implicit serializer: Serializer[T], functionClassTag: ClassTag[F], keyOrder: KeyOrder[Slice[Byte]]): IO[Boot, Set[T, F, Less]]
- def apply[K, V, F](config: SwayDBMemoryConfig, fileCache: Enable, memoryCache: MemoryCache, threadStateCache: ThreadStateCache, cacheKeyValueIds: Boolean)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], functionClassTag: ClassTag[F], keyOrder: KeyOrder[Slice[Byte]]): IO[Boot, Map[K, V, F, Less]]
- def apply[T, F](config: SwayDBPersistentConfig, fileCache: Enable, memoryCache: MemoryCache, threadStateCache: ThreadStateCache, cacheKeyValueIds: Boolean)(implicit serializer: Serializer[T], functionClassTag: ClassTag[F], keyOrder: KeyOrder[Slice[Byte]]): IO[Boot, Set[T, F, Less]]
-
def
apply[K, V, F](config: SwayDBPersistentConfig, fileCache: Enable, memoryCache: MemoryCache, threadStateCache: ThreadStateCache, cacheKeyValueIds: Boolean)(implicit keySerializer: Serializer[K], valueSerializer: Serializer[V], functionClassTag: ClassTag[F], keyOrder: KeyOrder[Slice[Byte]]): IO[Boot, Map[K, V, F, Less]]
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
- keySerializer
Converts keys to Bytes
- valueSerializer
Converts values to Bytes
- keyOrder
Sort order for keys
- returns
Database instance
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
repairAppendix[K](levelPath: Path, repairStrategy: AppendixRepairStrategy)(implicit serializer: Serializer[K], fileSweeper: Enabled, keyOrder: KeyOrder[Slice[Byte]] = KeyOrder.default): IO[Level, RepairResult[K]]
Documentation: http://www.swaydb.io/api/repairAppendix
-
def
sweeperExecutionContext: ExecutionContext { val threadPool: java.util.concurrent.ExecutorService }
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()