Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include S
val v : ?fresh:bool -> ?readonly:bool -> log_size:int -> string -> t
The constructor for indexes.
val clear : t -> unit
clear t
clears t
so that there are no more bindings in it.
exception Invalid_key_size of key
exception Invalid_value_size of value
The exceptions raised when trying to add a key or a value of different size than encoded_size
replace t k v
binds k
to v
in t
, replacing any existing binding of k
.
Iterates over the index bindings. Limitations:
val flush : t -> unit
Flushes all buffers to the supplied IO
instance.
val close : t -> unit
Closes all resources used by t
.
force_merge t
forces a merge for t
. Optionally, a hook can be passed that will be called twice:
`Before
: immediately before merging (while holding the merge lock);`After
: immediately after merging (while holding the merge lock).val await : async -> unit
Wait for an asynchronous computation to finish.