Struct FileStreamMetrics

Source
pub struct FileStreamMetrics {
    pub time_opening: StartableTime,
    pub time_scanning_until_data: StartableTime,
    pub time_scanning_total: StartableTime,
    pub time_processing: StartableTime,
    pub file_open_errors: Count,
    pub file_scan_errors: 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.

If there are multiple files being scanned, the stream will open the next file in the background while scanning the current file. This metric will only capture time spent opening while not also scanning. FileStream: https://github.com/apache/datafusion/blob/main/datafusion/core/src/datasource/physical_plan/file_stream.rs

§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. FileStream: https://github.com/apache/datafusion/blob/main/datafusion/core/src/datasource/physical_plan/file_stream.rs

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

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.

Implementations§

Source§

impl FileStreamMetrics

Source

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

Auto Trait Implementations§

Blanket Implementations§

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

Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,