pub struct FileStreamMetrics {
pub time_opening: StartableTime,
pub time_scanning_until_data: StartableTime,
pub time_scanning_total: StartableTime,
pub time_processing: Time,
pub file_open_errors: Count,
pub file_scan_errors: Count,
pub files_opened: Count,
pub files_processed: Count,
}Expand description
Metrics for FileStream
Note that all of these metrics are in terms of wall clock time (not cpu time) so they include time spent waiting on I/O as well as other operators.
Fields§
§time_opening: StartableTimeWall clock time elapsed for file opening.
Time between when FileOpener::open is called and when the
FileStream receives a stream for reading.
time_scanning_until_data: StartableTimeWall clock time elapsed for file scanning + first record batch of decompression + decoding
Time between when the FileStream requests data from the
stream and when the first RecordBatch is produced.
time_scanning_total: StartableTimeTotal elapsed wall clock time for scanning + record batch decompression / decoding
Sum of time between when the FileStream requests data from
the stream and when a RecordBatch is produced for all
record batches in the stream. Note that this metric also
includes the time of the parent operator’s execution.
time_processing: TimeWall clock time elapsed for data decompression + decoding
Time spent waiting for the FileStream’s input.
file_open_errors: CountCount of errors opening file.
If using OnError::Skip this will provide a count of the number of files
which were skipped and will not be included in the scan results.
file_scan_errors: CountCount of errors scanning file
If using OnError::Skip this will provide a count of the number of files
which were skipped and will not be included in the scan results.
files_opened: CountCount of files successfully opened or evaluated for processing.
At t=end (completion of a query) this is equal to files_opened, and both values are equal
to the total number of files in the query; unless the query itself fails.
This value will always be greater than or equal to files_open.
Note that this value does not mean the file was actually scanned.
We increment this value for any processing of a file, even if that processing is
discarding it because we hit a LIMIT (in this case files_opened and files_processed are both incremented at the same time).
files_processed: CountCount of files completely processed / closed (opened, pruned, or skipped due to limit).
At t=0 (the beginning of a query) this is 0.
At t=end (completion of a query) this is equal to files_opened, and both values are equal
to the total number of files in the query; unless the query itself fails.
This value will always be less than or equal to files_open.
We increment this value for any processing of a file, even if that processing is
discarding it because we hit a LIMIT (in this case files_opened and files_processed are both incremented at the same time).
Implementations§
Source§impl FileStreamMetrics
impl FileStreamMetrics
pub fn new(metrics: &ExecutionPlanMetricsSet, partition: usize) -> Self
Auto Trait Implementations§
impl Freeze for FileStreamMetrics
impl RefUnwindSafe for FileStreamMetrics
impl Send for FileStreamMetrics
impl Sync for FileStreamMetrics
impl Unpin for FileStreamMetrics
impl UnsafeUnpin for FileStreamMetrics
impl UnwindSafe for FileStreamMetrics
Blanket Implementations§
impl<T> Allocation for T
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
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>
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>
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