MCPcopy Create free account
hub / github.com/cosdata/cosdata / replica_node_kind

Method replica_node_kind

src/models/prob_node.rs:487–496  ·  view source on GitHub ↗

Returns the kind of node it is

(&self)

Source from the content-addressed store, hash-verified

485
486 /// Returns the kind of node it is
487 pub fn replica_node_kind(&self) -> ReplicaNodeKind {
488 let metadata = self.prop_metadata.as_ref().map(|pm| &*pm.vec);
489 let internal_id = self.get_id();
490 let vector_data = VectorData {
491 id: Some(&internal_id),
492 quantized_vec: &self.prop_value.vec,
493 metadata,
494 };
495 vector_data.replica_node_kind()
496 }
497}
498
499impl Drop for ProbNode {

Callers

nothing calls this directly

Calls 1

get_idMethod · 0.80

Tested by

no test coverage detected