[][src]Struct webhdfs::sync_client::SyncHdfsClient

pub struct SyncHdfsClient { /* fields omitted */ }

HDFS Connection data, etc.

Methods

impl SyncHdfsClient[src]

pub fn from_async(acx: HdfsClient) -> Result<Self>[src]

pub fn get_file<W: Write>(&self, input: &str, output: &mut W) -> Result<()>[src]

Get a file (read it from hdfs and save to local fs)

pub fn dir(&self, path: &str) -> Result<ListStatusResponse>[src]

Get directory listing

pub fn stat(&self, path: &str) -> Result<FileStatusResponse>[src]

Stat a file /dir

pub fn concat(&self, path: &str, paths: Vec<String>) -> Result<()>[src]

Concat File(s)

pub fn mkdirs(&self, path: &str, opts: MkdirsOptions) -> Result<bool>[src]

Make a Directory

pub fn rename(&self, path: &str, destination: String) -> Result<bool>[src]

Rename a file/directory

Create a Symbolic Link

pub fn delete(&self, path: &str, opts: DeleteOptions) -> Result<bool>[src]

Delete a File/Directory

Trait Implementations

impl Clone for SyncHdfsClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T