MCPcopy Index your code
hub / github.com/aggregateknowledge/java-hll / union

Method union

src/main/java/net/agkn/hll/HLL.java:631–642  ·  view source on GitHub ↗

Computes the union of HLLs and stores the result in this instance. @param other the other HLL instance to union into this one. This cannot be null .

(final HLL other)

Source from the content-addressed store, hash-verified

629 * cannot be <code>null</code>.
630 */
631 public void union(final HLL other) {
632 // TODO: verify HLLs are compatible
633 final HLLType otherType = other.getType();
634
635 if(type.equals(otherType)) {
636 homogeneousUnion(other);
637 return;
638 } else {
639 heterogenousUnion(other);
640 return;
641 }
642 }
643
644 // ------------------------------------------------------------------------
645 // Union helpers

Callers 3

unionTestMethod · 0.95
unionTestMethod · 0.95
cumulativeUnionLineMethod · 0.80

Calls 3

homogeneousUnionMethod · 0.95
heterogenousUnionMethod · 0.95
getTypeMethod · 0.45

Tested by 3

unionTestMethod · 0.76
unionTestMethod · 0.76
cumulativeUnionLineMethod · 0.64