Constructor and Description |
---|
Union(int nomEntries,
SummarySetOperations<S> summarySetOps)
Creates new Intersection instance with instructions on how to process two summaries that
overlap.
|
Union(SummarySetOperations<S> summarySetOps)
Creates new Intersection instance with instructions on how to process two summaries that
overlap.
|
Modifier and Type | Method and Description |
---|---|
CompactSketch<S> |
getResult()
Gets the internal set as an unordered CompactSketch
|
void |
reset()
Resets the internal set to the initial state, which represents an empty set
|
void |
update(Sketch<S> sketchIn)
Updates the internal set by adding entries from the given sketch
|
void |
update(Sketch sketchIn,
S summary)
Updates the internal set by combining entries using the hashes from the Theta Sketch and
summary values from the given summary and rules from the summarySetOps defined by the
Union constructor.
|
public Union(SummarySetOperations<S> summarySetOps)
summarySetOps
- instance of SummarySetOperationspublic Union(int nomEntries, SummarySetOperations<S> summarySetOps)
nomEntries
- nominal entries (K). Forced to the nearest power of 2 greater than
given value.summarySetOps
- instance of SummarySetOperationspublic void update(Sketch<S> sketchIn)
sketchIn
- input sketch to add to the internal set.
If null or empty, it is ignored.public void update(Sketch sketchIn, S summary)
sketchIn
- the given Theta Sketch input. If null or empty, it is ignored.summary
- the given proxy summary for the Theta Sketch, which doesn't have one. This may
not be null.public CompactSketch<S> getResult()
public void reset()
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.