public class ArrayOfStringsSummarySetOperations extends Object implements SummarySetOperations<ArrayOfStringsSummary>
Constructor and Description |
---|
ArrayOfStringsSummarySetOperations() |
Modifier and Type | Method and Description |
---|---|
ArrayOfStringsSummary |
intersection(ArrayOfStringsSummary a,
ArrayOfStringsSummary b)
This is called by the intersection operator when both sketches have the same hash value.
|
ArrayOfStringsSummary |
union(ArrayOfStringsSummary a,
ArrayOfStringsSummary b)
This is called by the union operator when both sketches have the same hash value.
|
public ArrayOfStringsSummary union(ArrayOfStringsSummary a, ArrayOfStringsSummary 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<ArrayOfStringsSummary>
a
- Summary from sketch Ab
- Summary from sketch Bpublic ArrayOfStringsSummary intersection(ArrayOfStringsSummary a, ArrayOfStringsSummary 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<ArrayOfStringsSummary>
a
- Summary from sketch Ab
- Summary from sketch BCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.