Example usage for org.apache.hadoop.fs FileSystem removeXAttr

List of usage examples for org.apache.hadoop.fs FileSystem removeXAttr

Introduction

In this page you can find the example usage for org.apache.hadoop.fs FileSystem removeXAttr.

Prototype

public void removeXAttr(Path path, String name) throws IOException 

Source Link

Document

Remove an xattr of a file or directory.

Usage

From source file:com.mellanox.r4h.DistributedFileSystem.java

License:Apache License

@Override
public void removeXAttr(Path path, final String name) throws IOException {
    Path absF = fixRelativePart(path);
    new FileSystemLinkResolver<Void>() {
        @Override/*  w w w  .jav  a2 s . com*/
        public Void doCall(final Path p) throws IOException {
            dfs.removeXAttr(getPathName(p), name);
            return null;
        }

        @Override
        public Void next(final FileSystem fs, final Path p) throws IOException {
            fs.removeXAttr(p, name);
            return null;
        }
    }.resolve(this, absF);
}