clj-leveldb documentation
->Batch
fn
Positional factory function for class clj_leveldb.Batch.
->LevelDB
fn
Positional factory function for class clj_leveldb.LevelDB.
->Snapshot
fn
Positional factory function for class clj_leveldb.Snapshot.
approximate-size
fn
Returns an estimate of the size of entries, in bytes, inclusively between start
and end
.
compact
fn
Forces compaction of database over the given range. If start
or end
are nil, they default to
the full range of the database.
create-db
fn
Creates a closeable database object, which takes a directory and zero or more options.
The key and val encoder/decoders are functions for transforming to and from byte-arrays.
get
fn
Returns the value of key
for the given database or snapshot. If the key doesn't exist, returns
default-value
or nil.
iterator
fn
Returns a closeable sequence of map entries (accessed with key
and val
) that is the inclusive
range from start
to end
. If exhausted, the sequence is automatically closed.
map->Batch
fn
Factory function for class clj_leveldb.Batch, taking a map of keywords to field values.
map->LevelDB
fn
Factory function for class clj_leveldb.LevelDB, taking a map of keywords to field values.
map->Snapshot
fn
Factory function for class clj_leveldb.Snapshot, taking a map of keywords to field values.
snapshot
fn
Returns a snapshot of the database that can be used with get
and iterator
. This implements
java.io.Closeable, and can leak space in the database if not closed.