#include <Keyfile.hpp>
Public Methods | |
| void | put (const char *key, const void *value, int valueSize) |
| void | put (int key, const void *value, int valueSize) |
| bool | get (const char *key, void *value, int &actualSize, int maxSize) const |
| bool | get (const char *key, char **value, int &actualSize) const |
| bool | get (int key, void *value, int &actualSize, int maxSize) const |
| bool | get (int key, char **value, int &actualSize) const |
| int | getSize (const char *key) const |
| int | getSize (int key) const |
| void | remove (const char *key) |
| Remove the entry in the b-tree for the given key. | |
| void | remove (int key) |
| Remove the entry in the b-tree for the given key. | |
| void | open (const std::string &filename, int cacheSize=1024 *1024) |
| Open a keyfile with the given filename, with cacheSize (default 1MB). | |
| void | open (const char *filename, int cacheSize=1024 *1024) |
| Open a keyfile with the given filename, with cacheSize (default 1MB). | |
| void | create (const std::string &filename, int cacheSize=1024 *1024) |
| Createa keyfile with the given filename, with cacheSize (default 1MB). | |
| void | create (const char *filename, int cacheSize=1024 *1024) |
| Create a keyfile with the given filename, with cacheSize (default 1MB). | |
| void | close () |
| Close a keyfile. | |
| void | setFirst () |
| Initialize keyfile to first key for iteration. | |
| bool | getNext (int &key, void *value, int &actualSize, int maxSize) const |
| get the next key and value pair from the keyfile. | |
| bool | getNext (char *key, int maxKeySize, void *value, int &actualSize, int maxSize) const |
| get the next key and value pair from the keyfile. | |
| Keyfile () | |
| initialize to empty | |
|
|
initialize to empty
|
|
|
Close a keyfile.
|
|
||||||||||||
|
Create a keyfile with the given filename, with cacheSize (default 1MB).
|
|
||||||||||||
|
Createa keyfile with the given filename, with cacheSize (default 1MB).
|
|
||||||||||||||||
|
Retrieve the value in the b-tree for the given key. Returns false if key does not exist in the b-tree. |
|
||||||||||||||||||||
|
Retrieve the value in the b-tree for the given key. Returns false if key does not exist in the b-tree. |
|
||||||||||||||||
|
Retrieve the value in the b-tree for the given key. Returns false if key does not exist in the b-tree. |
|
||||||||||||||||||||
|
Retrieve the value in the b-tree for the given key. Returns false if key does not exist in the b-tree. |
|
||||||||||||||||||||||||
|
get the next key and value pair from the keyfile.
|
|
||||||||||||||||||||
|
get the next key and value pair from the keyfile.
|
|
|
Return the size of the data in the b-tree for the given key. Returns -1 if key does not exist in the b-tree. |
|
|
Return the size of the data in the b-tree for the given key. Returns -1 if key does not exist in the b-tree. |
|
||||||||||||
|
Open a keyfile with the given filename, with cacheSize (default 1MB).
|
|
||||||||||||
|
Open a keyfile with the given filename, with cacheSize (default 1MB).
|
|
||||||||||||||||
|
Insert value into b-tree for the given key. Throws an Exception if the operation fails. |
|
||||||||||||||||
|
Insert value into b-tree for the given key. Throws an Exception if the operation fails. |
|
|
Remove the entry in the b-tree for the given key.
|
|
|
Remove the entry in the b-tree for the given key.
|
|
|
Initialize keyfile to first key for iteration.
|
1.2.18