# Uses of Class
org.apache.datasketches.tuple.CompactSketch

Packages that use CompactSketch
Package
Description
org.apache.datasketches.tuple
The tuple package contains a number of sketches based on the same fundamental algorithms of the Theta Sketch Framework and extend these concepts for whole new families of sketches.

## Uses of CompactSketch in org.apache.datasketches.tuple

Methods in org.apache.datasketches.tuple that return CompactSketch
Modifier and Type
Method
Description
`static <S extends Summary>
CompactSketch<S>`
AnotB.`aNotB(Sketch<S> skA, Sketch skB)`
Returns the A-and-not-B set operation on a Tuple sketch and a Theta sketch.
`static <S extends Summary>
CompactSketch<S>`
AnotB.`aNotB(Sketch<S> skA, Sketch<S> skB)`
Returns the A-and-not-B set operation on the two given Tuple sketches.
`CompactSketch<S>`
CompactSketch.`compact()`
`abstract CompactSketch<S>`
Sketch.`compact()`
Converts this sketch to a CompactSketch on the Java heap.
`CompactSketch<T>`
Filter.`filter(Sketch<T> sketchIn)`
Filters elements on the provided `Sketch`
`CompactSketch<S>`
AnotB.`getResult(boolean reset)`
Gets the result of the multistep, stateful operation AnotB that have been executed with calls to `AnotB.setA(Sketch)` and (`AnotB.notB(Sketch)` or `AnotB.notB(org.apache.datasketches.theta.Sketch)`).
`CompactSketch<S>`
Intersection.`getResult()`
Gets the internal set as an unordered CompactSketch
`CompactSketch<S>`
Union.`getResult()`
Gets the result of a sequence of stateful union operations as an unordered CompactSketch
`CompactSketch<S>`
Union.`getResult(boolean reset)`
Gets the result of a sequence of stateful union operations as an unordered CompactSketch.
`CompactSketch<S>`
Intersection.`intersect(Sketch<S> tupleSketch, Sketch thetaSketch, S summary)`
Perform a stateless intersect set operation on a tuple sketch and a theta sketch and returns the result as an unordered CompactSketch on the heap.
`CompactSketch<S>`
Intersection.`intersect(Sketch<S> tupleSketchA, Sketch<S> tupleSketchB)`
Perform a stateless intersect set operation on the two given tuple sketches and returns the result as an unordered CompactSketch on the heap.
`CompactSketch<S>`
Union.`union(Sketch<S> tupleSketch, Sketch thetaSketch, S summary)`
Perform a stateless, pair-wise union operation between a tupleSketch and a thetaSketch.
`CompactSketch<S>`
Union.`union(Sketch<S> tupleSketchA, Sketch<S> tupleSketchB)`
Perform a stateless, pair-wise union operation between two tuple sketches.