pub struct HlxReader<R: Read + Seek> { /* private fields */ }Expand description
HLX Format Reader for preview functionality
Implementations§
Source§impl<R: Read + Seek> HlxReader<R>
impl<R: Read + Seek> HlxReader<R>
pub fn new(reader: R) -> Self
Sourcepub fn read_header(&mut self) -> Result<&HlxHeader, HlxError>
pub fn read_header(&mut self) -> Result<&HlxHeader, HlxError>
Read and validate the header
Sourcepub fn get_preview(&mut self) -> Result<Option<Vec<Value>>, HlxError>
pub fn get_preview(&mut self) -> Result<Option<Vec<Value>>, HlxError>
Get preview rows if available
Sourcepub fn get_schema(&mut self) -> Result<&HlxHeader, HlxError>
pub fn get_schema(&mut self) -> Result<&HlxHeader, HlxError>
Get schema information
Sourcepub fn read_batches(&mut self) -> Result<Vec<RecordBatch>, HlxError>
pub fn read_batches(&mut self) -> Result<Vec<RecordBatch>, HlxError>
Read Arrow IPC data as record batches
Auto Trait Implementations§
impl<R> Freeze for HlxReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for HlxReader<R>where
R: RefUnwindSafe,
impl<R> Send for HlxReader<R>where
R: Send,
impl<R> Sync for HlxReader<R>where
R: Sync,
impl<R> Unpin for HlxReader<R>where
R: Unpin,
impl<R> UnwindSafe for HlxReader<R>where
R: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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