public final class DoubleSummarySetOperations extends Object implements SummarySetOperations<DoubleSummary>
| Constructor and Description |
|---|
DoubleSummarySetOperations()
Deprecated.
|
DoubleSummarySetOperations(DoubleSummary.Mode summaryMode)
Creates an instance given a DoubleSummary update mode.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleSummary |
intersection(DoubleSummary a,
DoubleSummary b)
Intersection is not well defined or even meaningful between numeric values.
|
DoubleSummary |
union(DoubleSummary a,
DoubleSummary b)
This is called when a union of two sketches is produced, and both sketches have the same key.
|
@Deprecated public DoubleSummarySetOperations()
public DoubleSummarySetOperations(DoubleSummary.Mode summaryMode)
summaryMode - DoubleSummary update mode.public DoubleSummary union(DoubleSummary a, DoubleSummary b)
SummarySetOperationsCaution: 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<DoubleSummary>a - Summary from sketch Ab - Summary from sketch Bpublic DoubleSummary intersection(DoubleSummary a, DoubleSummary b)
intersection in interface SummarySetOperations<DoubleSummary>a - Summary from sketch Ab - Summary from sketch BCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.