pub struct GraphIdentifierNamespace { /* private fields */ }Implementations§
Source§impl GraphIdentifierNamespace
impl GraphIdentifierNamespace
pub fn new(scope: Option<&str>, generation: [u8; 16]) -> Self
pub fn key( &self, tag: u8, kind: GraphEntityKind, prefix: u32, graph: [u8; 16], ) -> [u8; 78]
Sourcepub fn legacy_graph_identity(&self, graph: &str) -> [u8; 16]
pub fn legacy_graph_identity(&self, graph: &str) -> [u8; 16]
Legacy names identify only the original incarnation. New graph creation supplies a random identity; rename retains the original identity in its registry.
pub fn label_key(&self, graph: [u8; 16]) -> [u8; 78]
Sourcepub fn serializable_entity_object(&self) -> [u8; 16]
pub fn serializable_entity_object(&self) -> [u8; 16]
Logical graph entity observations share the physical entity scope and clear generation, independently of named graph membership or table row identities.
Sourcepub fn serializable_scope_object(&self) -> [u8; 16]
pub fn serializable_scope_object(&self) -> [u8; 16]
Clearing a namespace invalidates even an absent read from any earlier generation of that physical scope.
pub fn sequence_key(&self, graph: [u8; 16], label: u32) -> [u8; 78]
pub fn entity_key(&self, kind: GraphEntityKind, prefix: u32) -> [u8; 78]
pub fn entity_seed_key(&self, kind: GraphEntityKind, prefix: u32) -> [u8; 78]
pub fn hint_key(&self, kind: GraphEntityKind) -> [u8; 78]
Sourcepub fn observe_entity(
&self,
batch: &mut dyn KeyValueBatch,
kind: GraphEntityKind,
id: u64,
) -> StorageBackendResult<()>
pub fn observe_entity( &self, batch: &mut dyn KeyValueBatch, kind: GraphEntityKind, id: u64, ) -> StorageBackendResult<()>
Preserve a supplied physical identity before its evaluated record is published. The wire identity has a two-byte prefix and six-byte ordinal; observing one row does not certify that legacy rows were seeded.
Sourcepub fn observe_registry(
&self,
batch: &mut dyn KeyValueBatch,
graph: &str,
source: &str,
) -> StorageBackendResult<()>
pub fn observe_registry( &self, batch: &mut dyn KeyValueBatch, graph: &str, source: &str, ) -> StorageBackendResult<()>
Import durable counters encoded in a graph registry without assigning labels or evaluating graph behavior. Opaque legacy payloads retain their existing catalog contract.