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

Packages that use CompactTupleSketch
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 CompactTupleSketch in org.apache.datasketches.tuple

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