com.clearspring.analytics.stream.cardinality.HyperLogLog.offerHashed()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中com.clearspring.analytics.stream.cardinality.HyperLogLog.offerHashed()方法的一些代码示例,展示了HyperLogLog.offerHashed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HyperLogLog.offerHashed()方法的具体详情如下:
包路径:com.clearspring.analytics.stream.cardinality.HyperLogLog
类名称:HyperLogLog
方法名:offerHashed

HyperLogLog.offerHashed介绍

暂无

代码示例

代码示例来源:origin: addthis/stream-lib

@Override
public boolean offer(Object o) {
  final int x = MurmurHash.hash(o);
  return offerHashed(x);
}

代码示例来源:origin: addthis/stream-lib

String valString = val.toString();
baseline.offer(valString);
guava128.offerHashed(hf128.hashString(valString, Charsets.UTF_8).asLong());
if (j > 0 && j % 1000000 == 0) {
  System.out.println("current count: " + j);

代码示例来源:origin: com.addthis/stream-lib

@Override
public boolean offer(Object o) {
  final int x = MurmurHash.hash(o);
  return offerHashed(x);
}

相关文章