Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
parquet-rs
An Apache Parquet implementation in Rust (work in progress)
Usage
Add this to your Cargo.toml:
[]
= "0.2"
and this to your crate root:
extern crate parquet;
Example usage:
use File;
use Path;
use ;
let file = open.unwrap;
let reader = new.unwrap;
let mut iter = reader.get_row_iter.unwrap;
while let Some = iter.next
See crate documentation on available API.
Supported Parquet Version
- Parquet-format 2.4.0
To update Parquet format to a newer version, check if parquet-format
version is available. Then simply update version of parquet-format
crate in Cargo.toml.
Requirements
- Rust nightly
See Working with nightly Rust to install nightly toolchain and set it as default.
Build
Run cargo build
or cargo build --release
to build in release mode.
Test
Run cargo test
for unit tests.
Binaries
The following binaries are provided (use cargo install
to install them):
-
parquet-schema for printing Parquet file schema and metadata.
Usage: parquet-schema <file-path> [verbose]
, wherefile-path
is the path to a Parquet file, and optionalverbose
is the boolean flag that allows to print full metadata or schema only (when not specified only schema will be printed). -
parquet-read for reading records from a Parquet file.
Usage: parquet-read <file-path> [num-records]
, wherefile-path
is the path to a Parquet file, andnum-records
is the number of records to read from a file (when not specified all records will be printed).
Benchmarks
Run cargo bench
for benchmarks.
Docs
To build documentation, run cargo doc --no-deps
.
To compile and view in the browser, run cargo doc --no-deps --open
.
License
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0.