S
- Type of Summarypublic class Intersection<S extends Summary> extends Object
Constructor and Description |
---|
Intersection(SummarySetOperations<S> summarySetOps)
Creates new Intersection instance with instructions on how to process two summaries that
intersect.
|
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 the Universal Set
|
void |
update(Sketch<S> sketchIn)
Updates the internal state by intersecting it with the given sketch.
|
void |
update(Sketch sketchIn,
S summary)
Updates the internal set by intersecting it with the given Theta sketch.
|
public Intersection(SummarySetOperations<S> summarySetOps)
summarySetOps
- instance of SummarySetOperationspublic void update(Sketch<S> sketchIn)
sketchIn
- input sketch to intersect with the internal state. It may not be null.public void update(Sketch sketchIn, S summary)
sketchIn
- input Theta Sketch to intersect with the internal state. It may not be null.summary
- the given proxy summary for the Theta Sketch, which doesn't have one.
It will be copied for each matching index. It may not be null.public CompactSketch<S> getResult()
public void reset()
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.