Uses of Class
org.apache.datasketches.theta.CompactSketch
Packages that use CompactSketch
Package
Description
The theta package contains the basic sketch classes that are members of the
Theta Sketch Framework.
-
Uses of CompactSketch in org.apache.datasketches.theta
Methods in org.apache.datasketches.theta that return CompactSketchModifier and TypeMethodDescriptionPerform A-and-not-B set operation on the two given sketches and return the result as an ordered CompactSketch on the heap.abstract CompactSketchAnotB.aNotB(Sketch skA, Sketch skB, boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) Perform A-and-not-B set operation on the two given sketches and return the result as a CompactSketch.abstract CompactSketchCompactSketch.compact(boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) Sketch.compact()Converts this sketch to a ordered CompactSketch.abstract CompactSketchSketch.compact(boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) Convert this sketch to a CompactSketch.UpdateSketch.compact(boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) abstract CompactSketchAnotB.getResult(boolean reset) Gets the result of the multistep, stateful operation AnotB that have been executed with calls toAnotB.setA(Sketch)and (AnotB.notB(Sketch)orAnotB.notB(org.apache.datasketches.theta.Sketch)).abstract CompactSketchAnotB.getResult(boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem, boolean reset) Gets the result of the multistep, stateful operation AnotB that have been executed with calls toAnotB.setA(Sketch)and (AnotB.notB(Sketch)orAnotB.notB(org.apache.datasketches.theta.Sketch)).Intersection.getResult()Gets the result of this operation as an ordered CompactSketch on the Java heap.abstract CompactSketchIntersection.getResult(boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) Gets the result of this operation as a CompactSketch in the given dstMem.abstract CompactSketchUnion.getResult()Gets the result of this operation as an ordered CompactSketch on the Java heap.abstract CompactSketchUnion.getResult(boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) Gets the result of this operation as a CompactSketch of the chosen form.static CompactSketchCompactSketch.heapify(org.apache.datasketches.memory.Memory srcMem) Heapify takes a CompactSketch image in Memory and instantiates an on-heap CompactSketch.static CompactSketchCompactSketch.heapify(org.apache.datasketches.memory.Memory srcMem, long expectedSeed) Heapify takes a CompactSketch image in Memory and instantiates an on-heap CompactSketch.static CompactSketchSketches.heapifyCompactSketch(org.apache.datasketches.memory.Memory srcMem) static CompactSketchSketches.heapifyCompactSketch(org.apache.datasketches.memory.Memory srcMem, long expectedSeed) Perform intersect set operation on the two given sketch arguments and return the result as an ordered CompactSketch on the heap.abstract CompactSketchIntersection.intersect(Sketch a, Sketch b, boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) Perform intersect set operation on the two given sketches and return the result as a CompactSketch.This implements a stateless, pair-wise union operation.abstract CompactSketchUnion.union(Sketch sketchA, Sketch sketchB, boolean dstOrdered, org.apache.datasketches.memory.WritableMemory dstMem) This implements a stateless, pair-wise union operation.static CompactSketchCompactSketch.wrap(byte[] bytes) Wrap takes the sketch image in the given Memory and refers to it directly.static CompactSketchCompactSketch.wrap(byte[] bytes, long expectedSeed) Wrap takes the sketch image in the given Memory and refers to it directly.static CompactSketchCompactSketch.wrap(org.apache.datasketches.memory.Memory srcMem) Wrap takes the CompactSketch image in given Memory and refers to it directly.static CompactSketchCompactSketch.wrap(org.apache.datasketches.memory.Memory srcMem, long expectedSeed) Wrap takes the sketch image in the given Memory and refers to it directly.static CompactSketchSketches.wrapCompactSketch(org.apache.datasketches.memory.Memory srcMem) static CompactSketchSketches.wrapCompactSketch(org.apache.datasketches.memory.Memory srcMem, long expectedSeed)