pub struct ParquetTickScan { /* private fields */ }Expand description
An immutable description of bounded tick partitions.
Implementations§
Source§impl ParquetTickScan
impl ParquetTickScan
Sourcepub fn describe(
root: impl AsRef<Path>,
exchange: &str,
symbol: &str,
bounds: ParquetScanBounds,
) -> Result<Self>
pub fn describe( root: impl AsRef<Path>, exchange: &str, symbol: &str, bounds: ParquetScanBounds, ) -> Result<Self>
Describe tick partitions and bind each path to its current file fingerprint.
Sourcepub fn describe_cancellable<F>(
root: impl AsRef<Path>,
exchange: &str,
symbol: &str,
bounds: ParquetScanBounds,
is_cancelled: F,
) -> Result<Self>
pub fn describe_cancellable<F>( root: impl AsRef<Path>, exchange: &str, symbol: &str, bounds: ParquetScanBounds, is_cancelled: F, ) -> Result<Self>
Describe tick partitions with cooperative cancellation.
Sourcepub fn cursor(&self) -> Result<ParquetTickCursor>
pub fn cursor(&self) -> Result<ParquetTickCursor>
Open a cursor against the file generations bound by this description.
Sourcepub fn cursor_with_read_size(
&self,
rows_per_read: usize,
) -> Result<ParquetTickCursor>
pub fn cursor_with_read_size( &self, rows_per_read: usize, ) -> Result<ParquetTickCursor>
Open a cursor with a maximum number of rows decoded per read.
Sourcepub fn latest_valid_tick_cancellable<F>(
&self,
is_cancelled: F,
) -> Result<Option<ParquetScannedRow<Tick>>>
pub fn latest_valid_tick_cancellable<F>( &self, is_cancelled: F, ) -> Result<Option<ParquetScannedRow<Tick>>>
Find the latest valid quote inside the inclusive scan bounds.
Sourcepub fn latest_valid_tick_before_cancellable<F>(
&self,
before: NaiveDateTime,
is_cancelled: F,
) -> Result<Option<ParquetScannedRow<Tick>>>
pub fn latest_valid_tick_before_cancellable<F>( &self, before: NaiveDateTime, is_cancelled: F, ) -> Result<Option<ParquetScannedRow<Tick>>>
Find the latest valid quote strictly before before and inside the scan bounds.
Trait Implementations§
Source§impl Clone for ParquetTickScan
impl Clone for ParquetTickScan
Source§fn clone(&self) -> ParquetTickScan
fn clone(&self) -> ParquetTickScan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParquetTickScan
impl RefUnwindSafe for ParquetTickScan
impl Send for ParquetTickScan
impl Sync for ParquetTickScan
impl Unpin for ParquetTickScan
impl UnsafeUnpin for ParquetTickScan
impl UnwindSafe for ParquetTickScan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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