2 unstable releases

new 0.10.0 Aug 7, 2018
0.1.0 Mar 29, 2018

#30 in Value formatting

Download history 1/week @ 2018-05-23 7/week @ 2018-05-30 2/week @ 2018-06-13 1/week @ 2018-06-20 3/week @ 2018-06-27 4/week @ 2018-07-04 2/week @ 2018-07-11 5/week @ 2018-07-18 4/week @ 2018-08-01 25/week @ 2018-08-08

18 downloads per month

Native Rust implementation of Apache Arrow

Build Status Coverage Status

Status

This is a starting point for a native Rust implementation of Arrow.

The current code demonstrates arrays of primitive types and structs.

Creating an Array from a Vec

// create a memory-aligned Arrow array from an existing Vec
let array = Array::from(vec![1,2,3,4,5]);

match array.data() {
    &ArrayData::Int32(ref buffer) => {
        println!("array contents: {:?}", buffer.iter().collect::<Vec<i32>>());
    }
    _ => {}
}

Creating an Array from a Builder

let mut builder: Builder<i32> = Builder::new();
for i in 0..10 {
    builder.push(i);
}
let buffer = builder.finish();
let array = Array::from(buffer);

Run Examples

Examples can be run using the cargo run --example command. For example:

cargo run --example array_from_builder

Run Tests

cargo test
Apache-2.0 license

Dependencies

Reverse deps