pub struct StreamArrayReader<R: VortexRead> { /* private fields */ }
Implementations§
Source§impl<R: VortexRead> StreamArrayReader<R>
impl<R: VortexRead> StreamArrayReader<R>
pub async fn try_new(read: R, ctx: Arc<Context>) -> VortexResult<Self>
pub fn with_dtype(self, dtype: Arc<DType>) -> Self
pub async fn load_dtype(self) -> VortexResult<Self>
Sourcepub fn array_stream(&mut self) -> impl ArrayStream + '_
pub fn array_stream(&mut self) -> impl ArrayStream + '_
Reads a single array from the stream.
pub fn into_array_stream(self) -> impl ArrayStream
Sourcepub async fn next_page(&mut self) -> VortexResult<Option<Buffer>>
pub async fn next_page(&mut self) -> VortexResult<Option<Buffer>>
Reads a single page from the stream.
Sourcepub async fn page_stream(
&mut self,
) -> impl Stream<Item = VortexResult<Buffer>> + '_
pub async fn page_stream( &mut self, ) -> impl Stream<Item = VortexResult<Buffer>> + '_
Reads consecutive pages from the stream until the message type changes.
Auto Trait Implementations§
impl<R> Freeze for StreamArrayReader<R>where
R: Freeze,
impl<R> !RefUnwindSafe for StreamArrayReader<R>
impl<R> Send for StreamArrayReader<R>where
R: Send,
impl<R> Sync for StreamArrayReader<R>where
R: Sync,
impl<R> Unpin for StreamArrayReader<R>where
R: Unpin,
impl<R> !UnwindSafe for StreamArrayReader<R>
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