pub struct Metadata {
pub batch_offsets: Vec<i32>,
pub page_table_position: usize,
pub manifest_position: Option<usize>,
pub stats_metadata: Option<StatisticsMetadata>,
}
Expand description
Data File Metadata
Fields§
§batch_offsets: Vec<i32>
Offset of each record batch.
page_table_position: usize
The file position of the page table in the file.
manifest_position: Option<usize>
The file position of the manifest block in the file.
stats_metadata: Option<StatisticsMetadata>
Metadata about statistics.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn num_batches(&self) -> usize
pub fn num_batches(&self) -> usize
Get the number of batches in this file.
pub fn is_empty(&self) -> bool
Sourcepub fn push_batch_length(&mut self, batch_len: i32)
pub fn push_batch_length(&mut self, batch_len: i32)
Push the length of the batch.
Sourcepub fn get_offset(&self, batch_id: i32) -> Option<i32>
pub fn get_offset(&self, batch_id: i32) -> Option<i32>
Get the starting offset of the batch.
Sourcepub fn get_batch_length(&self, batch_id: i32) -> Option<i32>
pub fn get_batch_length(&self, batch_id: i32) -> Option<i32>
Get the length of the batch.
Sourcepub fn group_indices_to_batches(&self, indices: &[u32]) -> Vec<BatchOffsets>
pub fn group_indices_to_batches(&self, indices: &[u32]) -> Vec<BatchOffsets>
Group row indices into each batch.
The indices must be sorted.
Trait Implementations§
Source§impl DeepSizeOf for Metadata
impl DeepSizeOf for Metadata
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl !RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl !UnwindSafe for Metadata
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreCreates a shared type from an unshared type.