public class PairwiseSetOperations extends Object
These operations are designed for convenience and accept Sketches that may be either Heap-based or Direct.
| Constructor and Description |
|---|
PairwiseSetOperations() |
| Modifier and Type | Method and Description |
|---|---|
static CompactSketch |
aNotB(Sketch skA,
Sketch skB)
This implements a stateless, pair-wise A AND NOT B operation on Sketches
that are either Heap-based or Direct.
|
static CompactSketch |
intersect(Sketch skA,
Sketch skB)
This implements a stateless, pair-wise Intersect operation on sketches
that are either Heap-based or Direct.
|
static CompactSketch |
union(CompactSketch skA,
CompactSketch skB)
This implements a stateless, pair-wise union operation on ordered,
CompactSketches that are either Heap-based or Direct.
|
static CompactSketch |
union(CompactSketch skA,
CompactSketch skB,
int k)
This implements a stateless, pair-wise union operation on ordered,
CompactSketches that are either Heap-based or Direct.
|
public static CompactSketch intersect(Sketch skA, Sketch skB)
skA - The first Sketch argument.skB - The second Sketch argument.public static CompactSketch aNotB(Sketch skA, Sketch skB)
skA - The first Sketch argument.skB - The second Sketch argument.public static CompactSketch union(CompactSketch skA, CompactSketch skB)
skA - The first ordered, CompactSketch argument.skB - The second ordered, CompactSketch argumentpublic static CompactSketch union(CompactSketch skA, CompactSketch skB, int k)
skA - The first ordered, CompactSketch argument.skB - The second ordered, CompactSketch argumentk - The upper bound of the number of entries to be retained by the sketchCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.