pub struct Blob { /* private fields */ }Expand description
The blob
Implementations§
Source§impl Blob
impl Blob
Sourcepub fn builder() -> BlobBuilder<((), (), (), (), (), ())>
pub fn builder() -> BlobBuilder<((), (), (), (), (), ())>
Create a builder for building Blob.
On the builder, call .r#type(...), .fields(...), .snapshot_id(...), .sequence_number(...), .data(...), .properties(...) to set the values of the fields.
Finally, call .build() to create the instance of Blob.
Source§impl Blob
impl Blob
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 properties(&self) -> &HashMap<String, String>
pub fn properties(&self) -> &HashMap<String, String>
Arbitrary meta-information about the blob
Trait Implementations§
impl StructuralPartialEq for Blob
Auto Trait Implementations§
impl Freeze for Blob
impl RefUnwindSafe for Blob
impl Send for Blob
impl Sync for Blob
impl Unpin for Blob
impl UnwindSafe for Blob
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<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§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