Java 类org.apache.hadoop.hdfs.server.namenode.StoragePolicySummary.StorageTypeAllocation 实例源码

项目:hadoop    文件:TestStoragePolicySummary.java   
private Map<String, Long> convertToStringMap(StoragePolicySummary sts) {
  LinkedHashMap<String, Long> actualOutput = new LinkedHashMap<>();
  for (Map.Entry<StorageTypeAllocation, Long> entry:
    StoragePolicySummary.sortByComparator(sts.storageComboCounts)) {
    actualOutput.put(entry.getKey().toString(), entry.getValue());
  }
  return actualOutput;
}
项目:aliyun-oss-hadoop-fs    文件:TestStoragePolicySummary.java   
private Map<String, Long> convertToStringMap(StoragePolicySummary sts) {
  LinkedHashMap<String, Long> actualOutput = new LinkedHashMap<>();
  for (Map.Entry<StorageTypeAllocation, Long> entry:
    StoragePolicySummary.sortByComparator(sts.storageComboCounts)) {
    actualOutput.put(entry.getKey().toString(), entry.getValue());
  }
  return actualOutput;
}
项目:big-c    文件:TestStoragePolicySummary.java   
private Map<String, Long> convertToStringMap(StoragePolicySummary sts) {
  LinkedHashMap<String, Long> actualOutput = new LinkedHashMap<>();
  for (Map.Entry<StorageTypeAllocation, Long> entry:
    StoragePolicySummary.sortByComparator(sts.storageComboCounts)) {
    actualOutput.put(entry.getKey().toString(), entry.getValue());
  }
  return actualOutput;
}