Copyright | (c) 2012-2013 The leveldb-haskell Authors |
---|---|
License | BSD3 |
Maintainer | kim.altintop@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Database.LevelDB.Types
Description
- 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 {
- blockRestartInterval :: !Int
- blockSize :: !Int
- cacheSize :: !Int
- comparator :: !(Maybe Comparator)
- compression :: !Compression
- createIfMissing :: !Bool
- errorIfExists :: !Bool
- maxOpenFiles :: !Int
- paranoidChecks :: !Bool
- writeBufferSize :: !Int
- filterPolicy :: !(Maybe (Either BloomFilter FilterPolicy))
- 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
Batch operation
Constructors
Put ByteString ByteString | |
Del ByteString |
newtype BloomFilter Source #
Represents the built-in Bloom Filter
Constructors
BloomFilter FilterPolicyPtr |
newtype Comparator Source #
User-defined comparator
Constructors
Comparator (ByteString -> ByteString -> Ordering) |
data FilterPolicy Source #
User-defined filter policy
Constructors
FilterPolicy | |
Fields
|
Options when opening a database
Constructors
Options | |
Fields
|
Properties exposed by LevelDB
Constructors
NumFilesAtLevel Int | |
Stats | |
SSTables |
data ReadOptions Source #
Options for read operations
Constructors
ReadOptions | |
Fields
|
Instances
Snapshot handle
Constructors
Snapshot SnapshotPtr |
type WriteBatch = [BatchOp] Source #
data WriteOptions Source #
Options for write operations
Constructors
WriteOptions | |
Fields
|
Instances