pub enum MetadataRow {
Inode(InodeRecord),
DirentryBind(DirentryBindRecord),
DirentryUnbind(DirentryUnbindRecord),
FileRevision(RevisionRecord),
Tombstone(SubtreeTombstoneRecord),
ActiveDeletion(ActiveDeletionRecord),
CommitReceipt(CommitReceiptRecord),
ContentPublication(ContentPublicationRecord),
AttributesRevision(AttributesRevisionRecord),
AccessRevision(AccessRevisionRecord),
}Expand description
One materialized metadata row stored in a segment.
Variants§
Inode(InodeRecord)
Establishes one inode’s immutable identity and kind.
DirentryBind(DirentryBindRecord)
Records one generation of a directory name binding.
DirentryUnbind(DirentryUnbindRecord)
Retires one exact directory-binding generation.
FileRevision(RevisionRecord)
Publishes one immutable content revision for a file inode.
Tombstone(SubtreeTombstoneRecord)
Changes whether one root inode has an active subtree tombstone.
ActiveDeletion(ActiveDeletionRecord)
Derived row used to list currently recoverable deletions.
Materialization writes listed for each tombstone set and removed for
each revoke. This lets trash listing use an ordered range scan instead of
replaying all historical deletion events.
CommitReceipt(CommitReceiptRecord)
Preserves the evidence needed to answer a retried logical commit.
ContentPublication(ContentPublicationRecord)
Records a published content identity independently of its revisions.
AttributesRevision(AttributesRevisionRecord)
Publishes one inode’s complete attribute map at one revision.
The row is whole state, not a change: a reader takes the newest row for an inode and needs nothing older. An inode with no row anywhere is at revision 0 with an empty map, so nothing is written until a caller writes an attribute.
AccessRevision(AccessRevisionRecord)
Publishes one inode’s complete access state at one revision.
Whole state, like an attribute revision: a reader takes the newest row for an inode. An inode with no row anywhere is at revision 0 with no boundary and no grants.
Implementations§
Source§impl MetadataRow
impl MetadataRow
Sourcepub fn row_key(&self) -> String
pub fn row_key(&self) -> String
Builds this row’s canonical durable key in its primary row family.
Sourcepub fn row_key_for_family(&self, family: MetadataRowFamily) -> String
pub fn row_key_for_family(&self, family: MetadataRowFamily) -> String
Builds this row’s durable key using the selected primary or secondary ordering.
Sourcepub fn filter_key_for_family(&self, family: MetadataRowFamily) -> String
pub fn filter_key_for_family(&self, family: MetadataRowFamily) -> String
Returns the Bloom filter key for this row in family.