Uses of Class
org.apache.datasketches.theta.CompactThetaSketch
Packages that use CompactThetaSketch
Package
Description
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 CompactThetaSketchModifier and TypeMethodDescriptionThetaAnotB.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 CompactThetaSketchThetaAnotB.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 CompactThetaSketchCompactThetaSketch.compact(boolean dstOrdered, MemorySegment dstSeg) ThetaSketch.compact()Converts this sketch to a ordered CompactThetaSketch.abstract CompactThetaSketchThetaSketch.compact(boolean dstOrdered, MemorySegment dstSeg) Convert this sketch to a CompactThetaSketch.UpdatableThetaSketch.compact(boolean dstOrdered, MemorySegment dstWSeg) abstract CompactThetaSketchThetaAnotB.getResult(boolean reset) Gets the result of the multistep, stateful operation ThetaAnotB that have been executed with calls toThetaAnotB.setA(ThetaSketch)and (ThetaAnotB.notB(ThetaSketch)orThetaAnotB.notB(org.apache.datasketches.theta.ThetaSketch)).abstract CompactThetaSketchThetaAnotB.getResult(boolean dstOrdered, MemorySegment dstSeg, boolean reset) Gets the result of the multistep, stateful operation ThetaAnotB that have been executed with calls toThetaAnotB.setA(ThetaSketch)and (ThetaAnotB.notB(ThetaSketch)orThetaAnotB.notB(org.apache.datasketches.theta.ThetaSketch)).ThetaIntersection.getResult()Gets the result of this operation as an ordered CompactThetaSketch on the Java heap.abstract CompactThetaSketchThetaIntersection.getResult(boolean dstOrdered, MemorySegment dstSeg) Gets the result of this operation as a CompactThetaSketch in the given dstSeg.abstract CompactThetaSketchThetaUnion.getResult()Gets the result of this operation as an ordered CompactThetaSketch on the Java heap.abstract CompactThetaSketchThetaUnion.getResult(boolean dstOrdered, MemorySegment dstSeg) Gets the result of this operation as a CompactThetaSketch of the chosen form.static CompactThetaSketchCompactThetaSketch.heapify(MemorySegment srcSeg) Heapify takes a CompactThetaSketch image in a MemorySegment and instantiates an on-heap CompactThetaSketch.static CompactThetaSketchCompactThetaSketch.heapify(MemorySegment srcSeg, long expectedSeed) Heapify takes a CompactThetaSketch image in a MemorySegment and instantiates an on-heap 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 CompactThetaSketchThetaIntersection.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.ThetaUnion.union(ThetaSketch sketchA, ThetaSketch sketchB) This implements a stateless, pair-wise union operation.abstract CompactThetaSketchThetaUnion.union(ThetaSketch sketchA, ThetaSketch sketchB, boolean dstOrdered, MemorySegment dstSeg) This implements a stateless, pair-wise union operation.static CompactThetaSketchCompactThetaSketch.wrap(byte[] bytes) Wrap takes the sketch image in the given byte array and refers to it directly.static CompactThetaSketchCompactThetaSketch.wrap(byte[] bytes, long expectedSeed) Wrap takes the sketch image in the given byte array and refers to it directly.static CompactThetaSketchCompactThetaSketch.wrap(MemorySegment srcSeg) Wrap takes the CompactThetaSketch image in given MemorySegment and refers to it directly.static CompactThetaSketchCompactThetaSketch.wrap(MemorySegment srcSeg, long expectedSeed) Wrap takes the sketch image in the given MemorySegment and refers to it directly.