Struct parquet::arrow::arrow_reader::ParquetFileArrowReader
source · [−]pub struct ParquetFileArrowReader { /* private fields */ }
Implementations
sourceimpl ParquetFileArrowReader
impl ParquetFileArrowReader
sourcepub fn try_new<R: ChunkReader + 'static>(chunk_reader: R) -> Result<Self>
pub fn try_new<R: ChunkReader + 'static>(chunk_reader: R) -> Result<Self>
Create a new ParquetFileArrowReader
with the provided ChunkReader
let file = File::open("file.parquet").unwrap();
let reader = ParquetFileArrowReader::try_new(file).unwrap();
let bytes = Bytes::from(vec![]);
let reader = ParquetFileArrowReader::try_new(bytes).unwrap();
sourcepub fn try_new_with_options<R: ChunkReader + 'static>(
chunk_reader: R,
options: ArrowReaderOptions
) -> Result<Self>
pub fn try_new_with_options<R: ChunkReader + 'static>(
chunk_reader: R,
options: ArrowReaderOptions
) -> Result<Self>
Create a new ParquetFileArrowReader
with the provided ChunkReader
and ArrowReaderOptions
sourcepub fn new(file_reader: Arc<dyn FileReader>) -> Self
pub fn new(file_reader: Arc<dyn FileReader>) -> Self
Create a new ParquetFileArrowReader
with the provided Arc<dyn FileReader>
sourcepub fn new_with_options(
file_reader: Arc<dyn FileReader>,
options: ArrowReaderOptions
) -> Self
pub fn new_with_options(
file_reader: Arc<dyn FileReader>,
options: ArrowReaderOptions
) -> Self
Create a new ParquetFileArrowReader
with the provided Arc<dyn FileReader>
and ArrowReaderOptions
sourcepub fn get_metadata(&mut self) -> ParquetMetaData
👎 Deprecated: use metadata() instead
pub fn get_metadata(&mut self) -> ParquetMetaData
use metadata() instead
Expose the reader metadata
sourcepub fn metadata(&self) -> &ParquetMetaData
pub fn metadata(&self) -> &ParquetMetaData
Returns the parquet metadata
sourcepub fn parquet_schema(&self) -> &SchemaDescriptor
pub fn parquet_schema(&self) -> &SchemaDescriptor
Returns the parquet schema
Trait Implementations
sourceimpl ArrowReader for ParquetFileArrowReader
impl ArrowReader for ParquetFileArrowReader
type RecordReader = ParquetRecordBatchReader
sourcefn get_schema(&mut self) -> Result<Schema>
fn get_schema(&mut self) -> Result<Schema>
Read parquet schema and convert it into arrow schema.
sourcefn get_schema_by_columns(&mut self, mask: ProjectionMask) -> Result<Schema>
fn get_schema_by_columns(&mut self, mask: ProjectionMask) -> Result<Schema>
Read parquet schema and convert it into arrow schema.
This schema only includes columns identified by mask
. Read more
sourcefn get_record_reader(
&mut self,
batch_size: usize
) -> Result<ParquetRecordBatchReader>
fn get_record_reader(
&mut self,
batch_size: usize
) -> Result<ParquetRecordBatchReader>
Returns record batch reader from whole parquet file. Read more
sourcefn get_record_reader_by_columns(
&mut self,
mask: ProjectionMask,
batch_size: usize
) -> Result<ParquetRecordBatchReader>
fn get_record_reader_by_columns(
&mut self,
mask: ProjectionMask,
batch_size: usize
) -> Result<ParquetRecordBatchReader>
Returns record batch reader whose record batch contains columns identified by
mask
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ParquetFileArrowReader
impl Send for ParquetFileArrowReader
impl Sync for ParquetFileArrowReader
impl Unpin for ParquetFileArrowReader
impl !UnwindSafe for ParquetFileArrowReader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more