pub struct SstMetadata {
pub setsum: [u8; 32],
pub first_key: Vec<u8>,
pub last_key: Vec<u8>,
pub smallest_timestamp: u64,
pub biggest_timestamp: u64,
pub file_size: u64,
}
Expand description
Metadata about an Sst.
Fields§
§setsum: [u8; 32]
The digest of the setsum covering this Sst.
first_key: Vec<u8>
The smallest key in the sst.
last_key: Vec<u8>
The largest key in the sst.
smallest_timestamp: u64
The smallest timestamp (not necessarily correlated with first_key).
biggest_timestamp: u64
The biggest timestamp (not necessarily correlated with last_key).
file_size: u64
The file size.
Implementations§
Source§impl SstMetadata
impl SstMetadata
Sourcepub fn first_key_escaped(&self) -> String
pub fn first_key_escaped(&self) -> String
The first key, escaped for printing.
Sourcepub fn last_key_escaped(&self) -> String
pub fn last_key_escaped(&self) -> String
The last key, escaped for printing.
Trait Implementations§
Source§impl Clone for SstMetadata
impl Clone for SstMetadata
Source§fn clone(&self) -> SstMetadata
fn clone(&self) -> SstMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SstMetadata
impl Debug for SstMetadata
Source§impl Default for SstMetadata
impl Default for SstMetadata
Source§impl<'prototk> FieldPackHelper<'prototk, message<SstMetadata>> for SstMetadata
impl<'prototk> FieldPackHelper<'prototk, message<SstMetadata>> for SstMetadata
Source§fn field_pack_sz(&self, tag: &Tag) -> usize
fn field_pack_sz(&self, tag: &Tag) -> usize
The size of encoding self with tag.
Source§fn field_pack(&self, tag: &Tag, out: &mut [u8])
fn field_pack(&self, tag: &Tag, out: &mut [u8])
Pack the tag into the output buffer.
Source§impl<'prototk> FieldUnpackHelper<'prototk, message<SstMetadata>> for SstMetadata
impl<'prototk> FieldUnpackHelper<'prototk, message<SstMetadata>> for SstMetadata
Source§fn merge_field(&mut self, proto: message<SstMetadata>)
fn merge_field(&mut self, proto: message<SstMetadata>)
Merge the proto into self.
Source§impl From<message<SstMetadata>> for SstMetadata
impl From<message<SstMetadata>> for SstMetadata
Source§impl Ord for SstMetadata
impl Ord for SstMetadata
Source§fn cmp(&self, other: &SstMetadata) -> Ordering
fn cmp(&self, other: &SstMetadata) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Packable for SstMetadata
impl Packable for SstMetadata
Source§fn pack_sz(&self) -> usize
fn pack_sz(&self) -> usize
pack_sz
returns the number of bytes required to serialize the Packable object.Source§fn pack(&self, buf: &mut [u8])
fn pack(&self, buf: &mut [u8])
pack
fills in the buffer out
with the packed binary representation of the Packable
object. The implementor is responsible to ensure that out
is exactly pack_sz()
bytes
and implementations are encouraged to assert this. Read moreSource§fn stream<W: Write>(&self, writer: &mut W) -> Result<usize, Error>
fn stream<W: Write>(&self, writer: &mut W) -> Result<usize, Error>
stream
writes the object to the provided writer using the same representation that would
be used in a call to pack
. The implementor is responsible for making sure that the
number of bytes written is exactly equal to the number of required bytes. Read moreSource§impl PartialEq for SstMetadata
impl PartialEq for SstMetadata
Source§impl PartialOrd for SstMetadata
impl PartialOrd for SstMetadata
Source§impl<'prototk> Unpackable<'prototk> for SstMetadata
impl<'prototk> Unpackable<'prototk> for SstMetadata
impl Eq for SstMetadata
impl<'prototk> Message<'prototk> for SstMetadata
impl StructuralPartialEq for SstMetadata
Auto Trait Implementations§
impl Freeze for SstMetadata
impl RefUnwindSafe for SstMetadata
impl Send for SstMetadata
impl Sync for SstMetadata
impl Unpin for SstMetadata
impl UnwindSafe for SstMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more