1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Hadoop WebHDFS API for Rust
//! 
//! Quick start: 
//! 
//! ```no_run
//! use webhdfs::*;
//! use webhdfs::sync_client::ReadHdfsFile;
//! use std::io::Read;
//! 
//! let cx = SyncHdfsClientBuilder::new("http://namenode:50070".parse().unwrap())
//!     .user_name("johnd".to_owned())
//!     .build().unwrap();
//! 
//! let mut file = ReadHdfsFile::open(cx, "/user/johnd/in.txt".to_owned()).unwrap();
//! let mut buf = [0u8; 100];
//! let _ = file.read(&mut buf).unwrap();
//! 
//! ```

#[macro_use] 
mod error;
mod https;
mod rest_client;
mod natmap;
mod uri_tools;
mod op;
pub mod config;
pub mod datatypes;
pub mod async_client;
pub mod sync_client;

pub use natmap::NatMap;
pub use error::{Error, Result};
pub use datatypes::*;
pub use op::*;
pub use async_client::{HdfsClient, HdfsClientBuilder};
pub use sync_client::{SyncHdfsClient, SyncHdfsClientBuilder};
pub use http::Uri;