MCPcopy Create free account
hub / github.com/aggregateknowledge/java-hll / pwMaxMask

Method pwMaxMask

src/main/java/net/agkn/hll/util/HLLUtil.java:142–144  ·  view source on GitHub ↗

Computes a mask that prevents overflow of HyperLogLog registers. @param registerSizeInBits the size of the HLL registers, in bits. @return mask a long mask to prevent overflow of the registers @see #registerBitSize(long)

(final int registerSizeInBits)

Source from the content-addressed store, hash-verified

140 * @see #registerBitSize(long)
141 */
142 public static long pwMaxMask(final int registerSizeInBits) {
143 return PW_MASK[registerSizeInBits];
144 }
145
146 // ========================================================================
147 /**

Callers 1

HLLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected