| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Database.KyotoCabinet.DB.Tree
Description
File tree database.
File database implemented with a B+: DBM with order.
- Persistence: persistent
- Algorithm: B+ tree
- Complexity: O(log n)
- Sequence: custom order
- Lock unit: page (rwlock)
- data Tree
- data TreeOptions = TreeOptions {
- alignmentPow :: Maybe Int8
- freePoolPow :: Maybe Int8
- options :: [Options]
- buckets :: Maybe Int64
- maxSize :: Maybe Int64
- defragInterval :: Maybe Int64
- compressor :: Maybe Compressor
- cipherKey :: Maybe String
- pageSize :: Maybe Int64
- comparator :: Maybe Comparator
- pageCacheSize :: Maybe Int64
- defaultTreeOptions :: TreeOptions
- data Compressor
- data Options = Compress
- data Comparator
- makeTree :: FilePath -> LoggingOptions -> TreeOptions -> Mode -> IO Tree
- openTree :: FilePath -> LoggingOptions -> Mode -> IO Tree
Documentation
data TreeOptions Source #
Constructors
| TreeOptions | |
Fields
| |
Instances
data Compressor Source #
Compression algorithm used. DEFLATE is the default one.
Constructors
| Zlib | The raw zlib compressor |
| DEFLATE | zlib deflate compressor |
| Gz | zlib gzip compressor |
| LZO | LZO compressor |
| LZMA | LZMA compressor |
| Arc | Arcfour cipher |
Instances
General tuning options
Constructors
| Compress | Enable compression of the keys and the values |
makeTree :: FilePath -> LoggingOptions -> TreeOptions -> Mode -> IO Tree Source #