Expand description
A native Rust implementation of the Apache ORC file format, providing API’s to read data into Apache Arrow in-memory arrays.
§Example read usage
let file = File::open("/path/to/file.orc").unwrap();
let reader = ArrowReaderBuilder::try_new(file).unwrap().build();
let record_batches = reader.collect::<Result<Vec<_>, _>>().unwrap();§Example write usage
let file = File::create("/path/to/file.orc").unwrap();
let batch = get_record_batch();
let mut writer = ArrowWriterBuilder::new(file, batch.schema())
.try_build()
.unwrap();
writer.write(&batch).unwrap();
writer.close().unwrap();Re-exports§
pub use arrow_reader::ArrowReader;pub use arrow_reader::ArrowReaderBuilder;pub use arrow_writer::ArrowWriter;pub use arrow_writer::ArrowWriterBuilder;pub use async_arrow_reader::ArrowStreamReader;pub use row_selection::RowSelection;pub use row_selection::RowSelector;
Modules§
- array_
decoder - arrow_
reader - arrow_
writer - async_
arrow_ reader - compression
- Related code for handling decompression of ORC files.
- error
- projection
- reader
- row_
selection - Row selection for ORC files
- schema
- statistics
- stripe