pub struct HdtLevelStorage {
pub level: usize,
pub vertices: usize,
pub tree_edges: usize,
pub tree_incidences: usize,
pub non_tree_incidences: usize,
pub token_capacity_bytes: usize,
pub vertex_index_capacity_bytes: usize,
pub free_list_capacity_bytes: usize,
pub adjacency_capacity_bytes: usize,
pub mapping_capacity_bytes: usize,
pub mapping_payload_bytes: usize,
}Expand description
Storage and live incidences of one materialized HDT level, an element of
HdtStorageStats::levels.
A stable interface of the experimental HDT engine; the struct is
exhaustive, so its eleven public fields are frozen for 1.x. The properties
that relate these fields to each other and to the graph are guaranteed as
listed on HdtStorageStats; every byte value and vertices are
implementation-dependent. Default gives an all-zero value.
Fields§
§level: usizeLevel index.
vertices: usizeVertex record slots: live records plus released slots awaiting reuse.
tree_edges: usizeLive spanning edges in this forest, including higher-level edges.
tree_incidences: usizeExact-level tree incidences, counting both endpoints.
non_tree_incidences: usizeExact-level non-tree incidences, counting both endpoints.
token_capacity_bytes: usizeEuler-tour token arena capacity bytes.
vertex_index_capacity_bytes: usizeVertex-to-token vector capacity bytes.
free_list_capacity_bytes: usizeRecycled-token handle vector capacity bytes.
adjacency_capacity_bytes: usizeCapacity bytes of both vectors of adjacency set headers.
mapping_capacity_bytes: usizeCapacity bytes of the local-to-global mapping and released-slot vectors.
mapping_payload_bytes: usizeLive key/value payload bytes of the global-to-local mapping, a hash map; excludes hash table overhead.