package index
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A platform-agnostic multi-level index for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
index-1.1.0.tbz
sha256=a2966d8aa7d318daea3474ca53c6f0239759ca5c966d36e084758adc49eadfef
sha512=45cff0b3665ca375dfc329faad3a598fe306e47a715ce0abf7842fd119af20591d1568b9c8779ff1a382ed089bdbdf167bf5712ae8da7d86cac9afaebafb8324
doc/index.unix/Index_unix/Private/Make/index.html
Module Private.Make
Parameters
module V : Index.ValueSignature
include Index.S with type key = K.t with type value = V.t
type key = K.tThe type for keys.
type value = V.tThe type for values.
val v : ?fresh:bool -> ?readonly:bool -> log_size:int -> string -> tThe constructor for indexes.
val clear : t -> unitclear t clears t so that there are no more bindings in it.
exception Invalid_key_size of keyexception Invalid_value_size of valueThe 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:
- Order is not specified.
- In case of recent replacements of existing values (since the last merge), this will hit both the new and old bindings.
- May not observe recent concurrent updates to the index by other processes.
val flush : t -> unitFlushes all buffers to the supplied IO instance.
val close : t -> unitCloses all resources used by t.
val force_merge : ?hook:[ `After | `Before ] Index.Private.Hook.t -> t -> asyncforce_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 -> unitWait for an asynchronous computation to finish.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page