private static String getTypeFromMap(String uri) { int idx = uri.lastIndexOf("."); Text format = null; if (idx != -1) { String suff = uri.substring(idx + 1, uri.length()); if (suff.equalsIgnoreCase("xml")) return "xml"; format = (Text) TransformOutputFormat.mimetypeMap.get(new Text(suff)); } if (format == null) { return "binary"; } else { return format.toString(); } }
for (Writable f : map.keySet()) { String fId = ((Text) f).toString(); ForestInfo fs = (ForestInfo) map.get(f); replicaMap.put(fId, fs.getReplicas()); if (fs.getUpdatable()) { long[] countAry = new long[updatableForests.size()]; for (int i = 0; i < countAry.length; i++) { countAry[i] = ((ForestInfo) map.get(new Text(uForests[i]))) .getFragmentCount(); long[] countAry = new long[updatableForests.size()]; for (int i = 0; i < countAry.length; i++) { countAry[i] = ((ForestInfo) map.get(new Text(uForests[i]))) .getFragmentCount(); long[] countAry = new long[updatableForests.size()]; for (int i = 0; i < countAry.length; i++) { countAry[i] = ((ForestInfo) map.get(new Text(uForests[i]))) .getFragmentCount();
rhUtil = new RestrictedHostsUtil(outputHosts); for (Writable forestId : forestStatusMap.keySet()) { String forestHost = ((ForestInfo)forestStatusMap.get(forestId)) .getHostName(); rhUtil.addForestHost(forestHost); ForestInfo fs = (ForestInfo)forestStatusMap.get(forestId); List<ForestHost> forestHostList = fs.getReplicas(); for (int i = 0; i < forestHostList.size(); i++) {
throw new IOException("Invalid role map"); String roleName = roleMap.get(roleid).toString(); String cap = result.next().asString(); ContentCapability capability = PermissionUtil
throw new IOException("Invalid role,capability pair"); String roleName = roleMap.get(roleid).toString(); String cap = result.next().asString(); ContentCapability capability = PermissionUtil