pub struct ParquetBarCursor { /* private fields */ }Expand description
Partition-at-a-time cursor over ascending bar rows.
Implementations§
Source§impl ParquetBarCursor
impl ParquetBarCursor
Sourcepub fn open(
root: impl AsRef<Path>,
exchange: &str,
symbol: &str,
timeframe: &str,
bounds: ParquetScanBounds,
) -> Result<Self>
pub fn open( root: impl AsRef<Path>, exchange: &str, symbol: &str, timeframe: &str, bounds: ParquetScanBounds, ) -> Result<Self>
Open a bar cursor directly from a Parquet data root.
Sourcepub fn open_with_read_size(
root: impl AsRef<Path>,
exchange: &str,
symbol: &str,
timeframe: &str,
bounds: ParquetScanBounds,
rows_per_read: usize,
) -> Result<Self>
pub fn open_with_read_size( root: impl AsRef<Path>, exchange: &str, symbol: &str, timeframe: &str, bounds: ParquetScanBounds, rows_per_read: usize, ) -> Result<Self>
Open a bar cursor with a maximum number of rows decoded per read.
Sourcepub fn open_cancellable<F>(
root: impl AsRef<Path>,
exchange: &str,
symbol: &str,
timeframe: &str,
bounds: ParquetScanBounds,
is_cancelled: F,
) -> Result<Self>
pub fn open_cancellable<F>( root: impl AsRef<Path>, exchange: &str, symbol: &str, timeframe: &str, bounds: ParquetScanBounds, is_cancelled: F, ) -> Result<Self>
Open a bar cursor while checking cancellation during partition discovery.
Sourcepub fn open_cancellable_with_read_size<F>(
root: impl AsRef<Path>,
exchange: &str,
symbol: &str,
timeframe: &str,
bounds: ParquetScanBounds,
rows_per_read: usize,
is_cancelled: F,
) -> Result<Self>
pub fn open_cancellable_with_read_size<F>( root: impl AsRef<Path>, exchange: &str, symbol: &str, timeframe: &str, bounds: ParquetScanBounds, rows_per_read: usize, is_cancelled: F, ) -> Result<Self>
Open a bounded bar cursor with cancellable partition discovery.
Sourcepub fn next_bar_with_ordinal(
&mut self,
) -> Result<Option<ParquetScannedRow<Bar>>>
pub fn next_bar_with_ordinal( &mut self, ) -> Result<Option<ParquetScannedRow<Bar>>>
Read the next ascending bar with its physical source-row ordinal.
Sourcepub fn next_bar_cancellable<F>(
&mut self,
is_cancelled: F,
) -> Result<Option<Bar>>
pub fn next_bar_cancellable<F>( &mut self, is_cancelled: F, ) -> Result<Option<Bar>>
Read the next ascending bar with cooperative cancellation.
Sourcepub fn next_bar_with_ordinal_cancellable<F>(
&mut self,
is_cancelled: F,
) -> Result<Option<ParquetScannedRow<Bar>>>
pub fn next_bar_with_ordinal_cancellable<F>( &mut self, is_cancelled: F, ) -> Result<Option<ParquetScannedRow<Bar>>>
Read the next bar and source ordinal with cooperative cancellation.
Sourcepub fn remaining_partitions(&self) -> usize
pub fn remaining_partitions(&self) -> usize
Number of date partitions still active or pending.
Sourcepub fn rows_per_read(&self) -> usize
pub fn rows_per_read(&self) -> usize
Maximum number of rows decoded by one Parquet read.
Auto Trait Implementations§
impl Freeze for ParquetBarCursor
impl RefUnwindSafe for ParquetBarCursor
impl Send for ParquetBarCursor
impl Sync for ParquetBarCursor
impl Unpin for ParquetBarCursor
impl UnsafeUnpin for ParquetBarCursor
impl UnwindSafe for ParquetBarCursor
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> 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