| Constructor and Description |
|---|
Union(int nomEntries,
SummarySetOperations<S> summarySetOps)
Creates new instance
|
Union(SummarySetOperations<S> summarySetOps)
Creates new instance with default nominal entries
|
| Modifier and Type | Method and Description |
|---|---|
CompactSketch<S> |
getResult()
Gets the internal set as a 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
|
public Union(SummarySetOperations<S> summarySetOps)
summarySetOps - instance of SummarySetOperationspublic Union(int nomEntries,
SummarySetOperations<S> summarySetOps)
nomEntries - nominal number of entries. 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 setpublic CompactSketch<S> getResult()
public void reset()
Copyright © 2015–2020 The Apache Software Foundation. All rights reserved.