Copyright | (c) 2012-2013 The leveldb-haskell Authors (c) 2014 The rocksdb-haskell Authors |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Database.RocksDB.Types
Description
Synopsis
- data BatchOp
- newtype BloomFilter = BloomFilter FilterPolicyPtr
- newtype Comparator = Comparator (ByteString -> ByteString -> Ordering)
- data Compression
- data FilterPolicy = FilterPolicy {
- fpName :: String
- createFilter :: [ByteString] -> ByteString
- keyMayMatch :: ByteString -> ByteString -> Bool
- data Options = Options {
- comparator :: !(Maybe Comparator)
- compression :: !Compression
- createIfMissing :: !Bool
- errorIfExists :: !Bool
- maxOpenFiles :: !Int
- paranoidChecks :: !Bool
- writeBufferSize :: !Int
- data Property
- data ReadOptions = ReadOptions {
- verifyCheckSums :: !Bool
- fillCache :: !Bool
- useSnapshot :: !(Maybe Snapshot)
- newtype Snapshot = Snapshot SnapshotPtr
- type WriteBatch = [BatchOp]
- data WriteOptions = WriteOptions {}
- defaultOptions :: Options
- defaultReadOptions :: ReadOptions
- defaultWriteOptions :: WriteOptions
Documentation
newtype BloomFilter Source #
Represents the built-in Bloom Filter
Constructors
BloomFilter FilterPolicyPtr |
newtype Comparator Source #
User-defined comparator
Constructors
Comparator (ByteString -> ByteString -> Ordering) |
data Compression Source #
Compression setting
Constructors
NoCompression | |
SnappyCompression | |
ZlibCompression |
Instances
Show Compression Source # | |
Defined in Database.RocksDB.Types Methods showsPrec :: Int -> Compression -> ShowS # show :: Compression -> String # showList :: [Compression] -> ShowS # | |
Eq Compression Source # | |
Defined in Database.RocksDB.Types |
data FilterPolicy Source #
User-defined filter policy
Constructors
FilterPolicy | |
Fields
|
Options when opening a database
Constructors
Options | |
Fields
|
Properties exposed by RocksDB
Constructors
NumFilesAtLevel Int | |
Stats | |
SSTables |
data ReadOptions Source #
Options for read operations
Constructors
ReadOptions | |
Fields
|
Instances
Default ReadOptions Source # | |
Defined in Database.RocksDB.Types Methods def :: ReadOptions # | |
Eq ReadOptions Source # | |
Defined in Database.RocksDB.Types |
Snapshot handle
Constructors
Snapshot SnapshotPtr |
type WriteBatch = [BatchOp] Source #
data WriteOptions Source #
Options for write operations
Constructors
WriteOptions | |
Fields
|
Instances
Show WriteOptions Source # | |
Defined in Database.RocksDB.Types Methods showsPrec :: Int -> WriteOptions -> ShowS # show :: WriteOptions -> String # showList :: [WriteOptions] -> ShowS # | |
Default WriteOptions Source # | |
Defined in Database.RocksDB.Types Methods def :: WriteOptions # | |
Eq WriteOptions Source # | |
Defined in Database.RocksDB.Types |