MCPcopy Create free account
hub / github.com/apache/calcite / union

Method union

core/src/main/java/org/apache/calcite/util/ArrowSet.java:237–242  ·  view source on GitHub ↗

Returns a new ArrowSet that is the union of this and another ArrowSet.

(ArrowSet other)

Source from the content-addressed store, hash-verified

235 * Returns a new ArrowSet that is the union of this and another ArrowSet.
236 */
237 public ArrowSet union(ArrowSet other) {
238 Set<Arrow> unionSet = new HashSet<>();
239 unionSet.addAll(this.getArrows());
240 unionSet.addAll(other.getArrows());
241 return new ArrowSet(unionSet);
242 }
243
244 /**
245 * Returns all arrows (functional dependencies) in this ArrowSet.

Callers 2

testFDUnionMethod · 0.95
getJoinFDMethod · 0.95

Calls 2

getArrowsMethod · 0.95
addAllMethod · 0.65

Tested by 1

testFDUnionMethod · 0.76