public class IntegerSummarySetOperations extends Object implements SummarySetOperations<IntegerSummary>
Constructor and Description |
---|
IntegerSummarySetOperations(IntegerSummary.Mode unionSummaryMode,
IntegerSummary.Mode intersectionSummaryMode)
Creates a new instance with two modes
|
Modifier and Type | Method and Description |
---|---|
IntegerSummary |
intersection(IntegerSummary a,
IntegerSummary b)
This is called by the intersection operator when both sketches have the same hash value.
|
IntegerSummary |
union(IntegerSummary a,
IntegerSummary b)
This is called by the union operator when both sketches have the same hash value.
|
public IntegerSummarySetOperations(IntegerSummary.Mode unionSummaryMode, IntegerSummary.Mode intersectionSummaryMode)
unionSummaryMode
- for unionsintersectionSummaryMode
- for intersectionspublic IntegerSummary union(IntegerSummary a, IntegerSummary b)
SummarySetOperations
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.
union
in interface SummarySetOperations<IntegerSummary>
a
- Summary from sketch Ab
- Summary from sketch Bpublic IntegerSummary intersection(IntegerSummary a, IntegerSummary b)
SummarySetOperations
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.
intersection
in interface SummarySetOperations<IntegerSummary>
a
- Summary from sketch Ab
- Summary from sketch BCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.