S
- type of Summarypublic interface SummarySetOperations<S extends Summary>
Modifier and Type | Method and Description |
---|---|
S |
intersection(S a,
S b)
This is called by the intersection operator when both sketches have the same hash value.
|
S |
union(S a,
S b)
This is called by the union operator when both sketches have the same hash value.
|
S union(S a, S b)
Caution: Do not modify the input Summary objects. Also do not return them directly, unless they are immutable (most Summary objects are not). For mutable Summary objects, it is important to create a new Summary object with the correct contents to be returned. Do not return null summaries.
a
- Summary from sketch Ab
- Summary from sketch BS intersection(S a, S b)
Caution: Do not modify the input Summary objects. Also do not return them directly, unless they are immutable (most Summary objects are not). For mutable Summary objects, it is important to create a new Summary object with the correct contents to be returned. Do not return null summaries.
a
- Summary from sketch Ab
- Summary from sketch BCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.