本文整理了Java中org.apache.hadoop.hive.ql.exec.Utilities.humanReadableByteCount()
方法的一些代码示例,展示了Utilities.humanReadableByteCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.humanReadableByteCount()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.exec.Utilities
类名称:Utilities
方法名:humanReadableByteCount
暂无
代码示例来源:origin: apache/hive
gWork.getName(), humanReadableByteCount(serializedSize));
gWorkMap.get(conf).put(path, gWork);
return gWork;
代码示例来源:origin: apache/drill
gWork.getName(), humanReadableByteCount(serializedSize));
gWorkMap.get(conf).put(path, gWork);
} else if (LOG.isDebugEnabled()) {
代码示例来源:origin: apache/hive
private String summary(String scheme, String vertexName, TezCounters vertexCounters) {
final String counterGroup = FileSystemCounter.class.getName();
final long bytesRead = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.BYTES_READ.name());
final long bytesWritten = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.BYTES_WRITTEN.name());
final long readOps = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.READ_OPS.name());
final long largeReadOps = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.LARGE_READ_OPS.name());
final long writeOps = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.WRITE_OPS.name());
return String.format(FORMATTING_PATTERN,
vertexName,
Utilities.humanReadableByteCount(bytesRead),
readOps,
largeReadOps,
Utilities.humanReadableByteCount(bytesWritten),
writeOps);
}
代码示例来源:origin: apache/hive
humanReadableByteCount(serializedSize));
代码示例来源:origin: apache/drill
private String summary(String scheme, String vertexName, TezCounters vertexCounters) {
final String counterGroup = FileSystemCounter.class.getName();
final long bytesRead = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.BYTES_READ.name());
final long bytesWritten = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.BYTES_WRITTEN.name());
final long readOps = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.READ_OPS.name());
final long largeReadOps = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.LARGE_READ_OPS.name());
final long writeOps = getCounterValueByGroupName(vertexCounters,
counterGroup, scheme + "_" + FileSystemCounter.WRITE_OPS.name());
return String.format(FORMATTING_PATTERN,
vertexName,
Utilities.humanReadableByteCount(bytesRead),
readOps,
largeReadOps,
Utilities.humanReadableByteCount(bytesWritten),
writeOps);
}
代码示例来源:origin: apache/drill
humanReadableByteCount(serializedSize));
内容来源于网络,如有侵权,请联系作者删除!