Skip to main content

FileStreamMetrics

Struct FileStreamMetrics 

Source
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: StartableTime

Wall 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: StartableTime

Wall 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: StartableTime

Total 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: Time

Wall clock time elapsed for data decompression + decoding

Time spent waiting for the FileStream’s input.

§file_open_errors: Count

Count 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: Count

Count 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: Count

Count 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: Count

Count 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

Source

pub fn new(metrics: &ExecutionPlanMetricsSet, partition: usize) -> Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V