MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / entry

Method entry

nodedb-graph/src/sharded.rs:160–162  ·  view source on GitHub ↗

Access or create a partition via the `Entry` API, for cases that need conditional initialization with a non-default constructor.

(&mut self, tid: TenantId)

Source from the content-addressed store, hash-verified

158 /// Access or create a partition via the `Entry` API, for cases that
159 /// need conditional initialization with a non-default constructor.
160 pub fn entry(&mut self, tid: TenantId) -> Entry<'_, TenantId, CsrIndex> {
161 self.partitions.entry(tid)
162 }
163}
164
165impl Default for ShardedCsrIndex {

Callers 15

index_documentMethod · 0.80
from_checkpointMethod · 0.80
trainMethod · 0.80
encodeFunction · 0.80
insertMethod · 0.80
shortest_pathMethod · 0.80
get_or_createMethod · 0.80
compute_statisticsMethod · 0.80
ensure_nodeMethod · 0.80
ensure_labelMethod · 0.80
entry_or_defaultMethod · 0.80
add_indexMethod · 0.80

Calls

no outgoing calls

Tested by 3

starvation_propertyFunction · 0.64
sweep_expired_peersFunction · 0.64