Crate sequencefile [−] [src]
Prototype streaming library for reading Hadoop sequencefiles
Example
let path = Path::new("/path/to/seqfile"); let file = File::open(&path).unwrap(); let seqfile = match sequencefile::Reader::new(file) { Ok(val) => val, Err(err) => panic!("Failed to open sequence file: {}", err), }; for kv in seqfile { println!("{:?}", kv); }
Reexports
pub use reader::*; |
Modules
reader |
Implementation and structs for a sequencefile reader |
Structs
Header |
Sequencefile header, metadata about the file, e.g. key/value types, version, compression and some internal state for properly decoding |
Enums
Codec |
Compression codec |
CompressionType |
Type of compression used on the sequencefile. |
Type Definitions
ByteString |
Convenience typedef |