pub struct SnapshotSummaryCollector { /* private fields */ }Expand description
SnapshotSummaryCollector collects and aggregates snapshot update metrics.
It gathers metrics about added or removed data files and manifests, and tracks
partition-specific updates.
Implementations§
Source§impl SnapshotSummaryCollector
impl SnapshotSummaryCollector
Sourcepub fn set_partition_summary_limit(&mut self, limit: u64)
pub fn set_partition_summary_limit(&mut self, limit: u64)
Sets the limit for including partition summaries. Summaries are not included if the number of partitions is exceeded.
Sourcepub fn add_file(
&mut self,
data_file: &DataFile,
schema: SchemaRef,
partition_spec: PartitionSpecRef,
)
pub fn add_file( &mut self, data_file: &DataFile, schema: SchemaRef, partition_spec: PartitionSpecRef, )
Adds a data file to the summary collector
Sourcepub fn remove_file(
&mut self,
data_file: &DataFile,
schema: SchemaRef,
partition_spec: PartitionSpecRef,
)
pub fn remove_file( &mut self, data_file: &DataFile, schema: SchemaRef, partition_spec: PartitionSpecRef, )
Removes a data file from the summary collector
Sourcepub fn add_manifest(&mut self, manifest: &ManifestFile)
pub fn add_manifest(&mut self, manifest: &ManifestFile)
Adds a manifest to the summary collector
Sourcepub fn update_partition_metrics(
&mut self,
schema: SchemaRef,
partition_spec: PartitionSpecRef,
data_file: &DataFile,
is_add_file: bool,
)
pub fn update_partition_metrics( &mut self, schema: SchemaRef, partition_spec: PartitionSpecRef, data_file: &DataFile, is_add_file: bool, )
Updates partition-specific metrics for a data file.
Sourcepub fn merge(&mut self, summary: SnapshotSummaryCollector)
pub fn merge(&mut self, summary: SnapshotSummaryCollector)
Merges another SnapshotSummaryCollector into the current one
Trait Implementations§
Source§impl Default for SnapshotSummaryCollector
impl Default for SnapshotSummaryCollector
Source§fn default() -> SnapshotSummaryCollector
fn default() -> SnapshotSummaryCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SnapshotSummaryCollector
impl RefUnwindSafe for SnapshotSummaryCollector
impl Send for SnapshotSummaryCollector
impl Sync for SnapshotSummaryCollector
impl Unpin for SnapshotSummaryCollector
impl UnwindSafe for SnapshotSummaryCollector
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
§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