# Uses of Class
org.apache.datasketches.theta.CompactThetaSketch

Packages that use CompactThetaSketch
Package
Description
org.apache.datasketches.theta
The theta package contains the basic sketch classes that are members of the Theta-Sketch Framework.

## Uses of CompactThetaSketch in org.apache.datasketches.theta

Methods in org.apache.datasketches.theta that return CompactThetaSketch
Modifier and Type
Method
Description
`CompactThetaSketch`
ThetaAnotB.`aNotB(ThetaSketch skA, ThetaSketch skB)`
Perform A-and-not-B set operation on the two given sketches and return the result as an ordered CompactThetaSketch on the heap.
`abstract CompactThetaSketch`
ThetaAnotB.`aNotB(ThetaSketch skA, ThetaSketch skB, boolean dstOrdered, MemorySegment dstSeg)`
Perform A-and-not-B set operation on the two given sketches and return the result as a CompactThetaSketch.
`abstract CompactThetaSketch`
CompactThetaSketch.`compact(boolean dstOrdered, MemorySegment dstSeg)`
`CompactThetaSketch`
ThetaSketch.`compact()`
Converts this sketch to a ordered CompactThetaSketch.
`abstract CompactThetaSketch`
ThetaSketch.`compact(boolean dstOrdered, MemorySegment dstSeg)`
Convert this sketch to a CompactThetaSketch.
`CompactThetaSketch`
UpdatableThetaSketch.`compact(boolean dstOrdered, MemorySegment dstWSeg)`
`abstract CompactThetaSketch`
ThetaAnotB.`getResult(boolean reset)`
Gets the result of the multistep, stateful operation ThetaAnotB that have been executed with calls to `ThetaAnotB.setA(ThetaSketch)` and (`ThetaAnotB.notB(ThetaSketch)` or `ThetaAnotB.notB(org.apache.datasketches.theta.ThetaSketch)`).
`abstract CompactThetaSketch`
ThetaAnotB.`getResult(boolean dstOrdered, MemorySegment dstSeg, boolean reset)`
Gets the result of the multistep, stateful operation ThetaAnotB that have been executed with calls to `ThetaAnotB.setA(ThetaSketch)` and (`ThetaAnotB.notB(ThetaSketch)` or `ThetaAnotB.notB(org.apache.datasketches.theta.ThetaSketch)`).
`CompactThetaSketch`
ThetaIntersection.`getResult()`
Gets the result of this operation as an ordered CompactThetaSketch on the Java heap.
`abstract CompactThetaSketch`
ThetaIntersection.`getResult(boolean dstOrdered, MemorySegment dstSeg)`
Gets the result of this operation as a CompactThetaSketch in the given dstSeg.
`abstract CompactThetaSketch`
ThetaUnion.`getResult()`
Gets the result of this operation as an ordered CompactThetaSketch on the Java heap.
`abstract CompactThetaSketch`
ThetaUnion.`getResult(boolean dstOrdered, MemorySegment dstSeg)`
Gets the result of this operation as a CompactThetaSketch of the chosen form.
`static CompactThetaSketch`
CompactThetaSketch.`heapify(MemorySegment srcSeg)`
Heapify takes a CompactThetaSketch image in a MemorySegment and instantiates an on-heap CompactThetaSketch.
`static CompactThetaSketch`
CompactThetaSketch.`heapify(MemorySegment srcSeg, long expectedSeed)`
Heapify takes a CompactThetaSketch image in a MemorySegment and instantiates an on-heap CompactThetaSketch.
`CompactThetaSketch`
ThetaIntersection.`intersect(ThetaSketch a, ThetaSketch b)`
Perform intersect set operation on the two given sketch arguments and return the result as an ordered CompactThetaSketch on the heap.
`abstract CompactThetaSketch`
ThetaIntersection.`intersect(ThetaSketch a, ThetaSketch b, boolean dstOrdered, MemorySegment dstSeg)`
Perform intersect set operation on the two given sketches and return the result as a CompactThetaSketch.
`CompactThetaSketch`
ThetaUnion.`union(ThetaSketch sketchA, ThetaSketch sketchB)`
This implements a stateless, pair-wise union operation.
`abstract CompactThetaSketch`
ThetaUnion.`union(ThetaSketch sketchA, ThetaSketch sketchB, boolean dstOrdered, MemorySegment dstSeg)`
This implements a stateless, pair-wise union operation.
`static CompactThetaSketch`
CompactThetaSketch.`wrap(byte[] bytes)`
Wrap takes the sketch image in the given byte array and refers to it directly.
`static CompactThetaSketch`
CompactThetaSketch.`wrap(byte[] bytes, long expectedSeed)`
Wrap takes the sketch image in the given byte array and refers to it directly.
`static CompactThetaSketch`
CompactThetaSketch.`wrap(MemorySegment srcSeg)`
Wrap takes the CompactThetaSketch image in given MemorySegment and refers to it directly.
`static CompactThetaSketch`
CompactThetaSketch.`wrap(MemorySegment srcSeg, long expectedSeed)`
Wrap takes the sketch image in the given MemorySegment and refers to it directly.