List of usage examples for com.google.common.hash Hashing murmur3_128
public static HashFunction murmur3_128()
From source file:org.apache.flink.util.XORShiftRandom.java
public XORShiftRandom(long input) { super(input); this.seed = Hashing.murmur3_128().hashLong(input).asLong(); }
From source file:com.facebook.buck.io.HashingDeterministicJarWriter.java
public HashingDeterministicJarWriter writeEntry(String name, InputStream contents) throws IOException { try (HashingInputStream hashingContents = new HashingInputStream(Hashing.murmur3_128(), contents)) { writeToJar(name, hashingContents); manifestWriter.setEntryAttribute(name, DIGEST_ATTRIBUTE_NAME, hashingContents.hash().toString()); }/*from w w w. ja va 2 s. com*/ return this; }
From source file:org.apache.kylin.measure.hllc.HLLCounter.java
public HLLCounter() { this(10, RegisterType.SINGLE_VALUE, Hashing.murmur3_128()); }
From source file:app.data.model.Link.java
@JsonCreator public Link(@JsonProperty(value = "url") String url, @JsonProperty(value = "title") String title) { this.url = url; this.title = title; // 1/(0.5% * 0.5%)? 50 ???? this.urlUnique = Hashing.murmur3_128().hashString(url, StandardCharsets.UTF_8).toString() + Hashing.sipHash24().hashString(url, StandardCharsets.UTF_8); }
From source file:com.yahoo.omid.transaction.HBaseCellId.java
@Override public long getCellId() { return Hashing.murmur3_128().newHasher().putBytes(table.getTableName()).putBytes(row).putBytes(family) .putBytes(qualifier).hash().asLong(); }
From source file:io.airlift.slice.BenchmarkMurmur3Hash128.java
@Benchmark public long guava(BenchmarkData data, ByteCounter counter) { counter.add(data.getSlice().length()); return Hashing.murmur3_128().hashBytes(data.getBytes()).asLong(); }
From source file:org.apache.kylin.measure.hllc.HLLCounter.java
public HLLCounter(int p) { this(p, RegisterType.SINGLE_VALUE, Hashing.murmur3_128()); }
From source file:org.apache.kylin.measure.hllc.HLLCounterOld.java
public HLLCounterOld(int p) { this(p, Hashing.murmur3_128()); }
From source file:org.apache.kylin.measure.hllc.HyperLogLogPlusCounter.java
public HyperLogLogPlusCounter(int p) { this(p, Hashing.murmur3_128()); }
From source file:benchmarks.Benchmark64BitHash.java
@Benchmark public long guava_murmur3_64(BenchmarkData bd, ByteCounter bc) { byte[] bytes = bd.getBytes(); bc.add(bytes.length);/*from ww w . j a v a 2s .com*/ return Hashing.murmur3_128().hashBytes(bytes).asLong(); }