List of usage examples for org.apache.hadoop.hdfs XAttrHelper buildXAttrs
public static List<XAttr> buildXAttrs(List<String> names)
XAttr list from xattr name list. 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(); } }