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

Method is_empty

nodedb/src/engine/kv/index.rs:257–259  ·  view source on GitHub ↗

Whether this collection has zero secondary indexes (fast path eligible).

(&self)

Source from the content-addressed store, hash-verified

255
256 /// Whether this collection has zero secondary indexes (fast path eligible).
257 pub fn is_empty(&self) -> bool {
258 self.indexes.is_empty() && self.composite_indexes.is_empty()
259 }
260
261 /// Number of active indexes (single + composite).
262 pub fn index_count(&self) -> usize {

Callers 12

casMethod · 0.45
atomic_putMethod · 0.45
scanMethod · 0.45
removeMethod · 0.45
on_putMethod · 0.45
putMethod · 0.45
deleteMethod · 0.45
register_indexMethod · 0.45
has_indexesMethod · 0.45
validate_conflict_policyFunction · 0.45
navigate_jsonFunction · 0.45
navigate_rmpvFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected