MCPcopy Create free account
hub / github.com/apache/solr / unionSize

Method unionSize

solr/core/src/java/org/apache/solr/search/DocSet.java:103–105  ·  view source on GitHub ↗

Returns the number of documents of the union of this set with another set. May be more efficient than actually creating the union and then getting its size.

(DocSet other)

Source from the content-addressed store, hash-verified

101 * efficient than actually creating the union and then getting its size.
102 */
103 public int unionSize(DocSet other) {
104 return this.size() + other.size() - this.intersectionSize(other);
105 }
106
107 /**
108 * Returns the documents in this set that are not in the other set. Neither set is modified - a

Callers 1

doSingleMethod · 0.95

Calls 3

sizeMethod · 0.95
intersectionSizeMethod · 0.95
sizeMethod · 0.65

Tested by 1

doSingleMethod · 0.76