Struct lance_file::v2::reader::FileReader
source · pub struct FileReader { /* private fields */ }Implementations§
source§impl FileReader
impl FileReader
pub fn metadata(&self) -> &Arc<CachedFileMetadata>
pub async fn print_all_metadata(metadata: &CachedFileMetadata) -> Result<()>
sourcepub async fn try_open(
scheduler: FileScheduler,
projection: Schema
) -> Result<Self>
pub async fn try_open( scheduler: FileScheduler, projection: Schema ) -> Result<Self>
Opens a new file reader without any pre-existing knowledge
This will read the file schema and desired column metadata from the
pub fn read_tasks( &self, params: ReadBatchParams, batch_size: u32 ) -> Result<Pin<Box<dyn Stream<Item = ReadBatchTask<impl Future<Output = Result<RecordBatch>>>> + Send>>>
pub fn read_stream( &self, params: ReadBatchParams, batch_size: u32 ) -> Result<Pin<Box<dyn RecordBatchStream>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileReader
impl !RefUnwindSafe for FileReader
impl Send for FileReader
impl Sync for FileReader
impl Unpin for FileReader
impl !UnwindSafe for FileReader
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