Crate orc_rust

Source
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;

Modules§

array_decoder
arrow_reader
arrow_writer
async_arrow_reader
compression
Related code for handling decompression of ORC files.
error
projection
reader
schema
statistics
stripe