pub struct BlobMetadata { /* private fields */ }
Expand description
Metadata about a blob. For more information, see: https://iceberg.apache.org/puffin-spec/#blobmetadata
Implementations§
Source§impl BlobMetadata
impl BlobMetadata
Sourcepub fn blob_type(&self) -> &str
pub fn blob_type(&self) -> &str
See blob types: https://iceberg.apache.org/puffin-spec/#blob-types
Sourcepub fn fields(&self) -> &[i32]
pub fn fields(&self) -> &[i32]
List of field IDs the blob was computed for; the order of items is used to compute sketches stored in the blob.
Sourcepub fn snapshot_id(&self) -> i64
pub fn snapshot_id(&self) -> i64
ID of the Iceberg table’s snapshot the blob was computed from
Sourcepub fn sequence_number(&self) -> i64
pub fn sequence_number(&self) -> i64
Sequence number of the Iceberg table’s snapshot the blob was computed from
Sourcepub fn length(&self) -> u64
pub fn length(&self) -> u64
The length of the blob stored in the file (after compression, if compressed)
Sourcepub fn compression_codec(&self) -> CompressionCodec
pub fn compression_codec(&self) -> CompressionCodec
The compression codec used to compress the data
Sourcepub fn properties(&self) -> &HashMap<String, String>
pub fn properties(&self) -> &HashMap<String, String>
Arbitrary meta-information about the blob
Trait Implementations§
Source§impl Clone for BlobMetadata
impl Clone for BlobMetadata
Source§fn clone(&self) -> BlobMetadata
fn clone(&self) -> BlobMetadata
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 BlobMetadata
impl Debug for BlobMetadata
Source§impl<'de> Deserialize<'de> for BlobMetadata
impl<'de> Deserialize<'de> for BlobMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlobMetadata
impl PartialEq for BlobMetadata
Source§impl Serialize for BlobMetadata
impl Serialize for BlobMetadata
impl Eq for BlobMetadata
impl StructuralPartialEq for BlobMetadata
Auto Trait Implementations§
impl Freeze for BlobMetadata
impl RefUnwindSafe for BlobMetadata
impl Send for BlobMetadata
impl Sync for BlobMetadata
impl Unpin for BlobMetadata
impl UnwindSafe for BlobMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more