Example usage for org.apache.hadoop.hdfs XAttrHelper buildXAttrs

List of usage examples for org.apache.hadoop.hdfs XAttrHelper buildXAttrs

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs XAttrHelper buildXAttrs.

Prototype

public static List<XAttr> buildXAttrs(List<String> names) 

Source Link

Document

Build XAttr list from xattr name list.

Usage

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

License:Apache License

public Map<String, byte[]> getXAttrs(String src, List<String> names) throws IOException {
    checkOpen();//w  w  w . j  a va2  s.  c  om
    TraceScope scope = getPathTraceScope("getXAttrs", src);
    try {
        return XAttrHelper.buildXAttrMap(namenode.getXAttrs(src, XAttrHelper.buildXAttrs(names)));
    } catch (RemoteException re) {
        throw re.unwrapRemoteException(AccessControlException.class, FileNotFoundException.class,
                UnresolvedPathException.class);
    } finally {
        scope.close();
    }
}