org.apache.hadoop.hive.ql.exec.Utilities.humanReadableByteCount()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(89)

本文整理了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

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));

相关文章

微信公众号

最新文章

更多

Utilities类方法