Module Kv_hash__Nv_map_ii.Make_2

Parameters

Signature

type raw_bucket = Raw_bucket.t
type t
type k = int
type v = int
val create_n : buckets_fn:string -> n:int -> t

Create with initial number of partitions

val create : buckets_fn:string -> t
val close : t -> unit
val insert : t -> k -> v -> unit

insert should only be called from the merge process (normally inserts go in the log)

val find_opt : t -> k -> v option
val get_partition : t -> Kv_hash.Partition.Partition_ii.t
val get_freelist : t -> Kv_hash.Freelist.t
val export : t -> Kv_hash.Nv_map_ii_intf.export_t
val show : t -> unit
val show_bucket : t -> k -> unit
val get_bucket : t -> k -> raw_bucket