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

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

Introduction

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

Prototype

public List<String> listXAttrs(Path path) throws IOException 

Source Link

Document

Get all of the xattr names for a file or directory.

Usage

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

License:Apache License

@Override
public List<String> listXAttrs(Path path) throws IOException {
    final Path absF = fixRelativePart(path);
    return new FileSystemLinkResolver<List<String>>() {
        @Override//w ww.j a v  a2  s.  com
        public List<String> doCall(final Path p) throws IOException {
            return dfs.listXAttrs(getPathName(p));
        }

        @Override
        public List<String> next(final FileSystem fs, final Path p)
                throws IOException, UnresolvedLinkException {
            return fs.listXAttrs(p);
        }
    }.resolve(this, absF);
}