Package | Description |
---|---|
org.apache.datasketches.theta |
The theta package contains the basic sketch classes that are members of the
Theta Sketch Framework.
|
Modifier and Type | Method and Description |
---|---|
CompactSketch |
AnotB.aNotB(Sketch skA,
Sketch skB)
Perform A-and-not-B set operation on the two given sketches and return the result as an
ordered CompactSketch on the heap.
|
abstract CompactSketch |
AnotB.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.
|
CompactSketch |
Sketch.compact()
Converts this sketch to a ordered CompactSketch.
|
CompactSketch |
UpdateSketch.compact(boolean dstOrdered,
org.apache.datasketches.memory.WritableMemory dstMem) |
abstract CompactSketch |
Sketch.compact(boolean dstOrdered,
org.apache.datasketches.memory.WritableMemory dstMem)
Convert this sketch to a CompactSketch.
|
abstract CompactSketch |
CompactSketch.compact(boolean dstOrdered,
org.apache.datasketches.memory.WritableMemory dstMem) |
CompactSketch |
Intersection.getResult()
Gets the result of this operation as an ordered CompactSketch on the Java heap.
|
abstract CompactSketch |
Union.getResult()
Gets the result of this operation as an ordered CompactSketch on the Java heap.
|
abstract CompactSketch |
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) ). |
abstract CompactSketch |
Intersection.getResult(boolean dstOrdered,
org.apache.datasketches.memory.WritableMemory dstMem)
Gets the result of this operation as a CompactSketch in the given dstMem.
|
abstract CompactSketch |
Union.getResult(boolean dstOrdered,
org.apache.datasketches.memory.WritableMemory dstMem)
Gets the result of this operation as a CompactSketch of the chosen form.
|
abstract CompactSketch |
AnotB.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
to
AnotB.setA(Sketch) and (AnotB.notB(Sketch) or
AnotB.notB(org.apache.datasketches.theta.Sketch) ). |
static CompactSketch |
CompactSketch.heapify(org.apache.datasketches.memory.Memory srcMem)
Heapify takes a CompactSketch image in Memory and instantiates an on-heap CompactSketch.
|
static CompactSketch |
CompactSketch.heapify(org.apache.datasketches.memory.Memory srcMem,
long expectedSeed)
Heapify takes a CompactSketch image in Memory and instantiates an on-heap CompactSketch.
|
static CompactSketch |
Sketches.heapifyCompactSketch(org.apache.datasketches.memory.Memory srcMem)
|
static CompactSketch |
Sketches.heapifyCompactSketch(org.apache.datasketches.memory.Memory srcMem,
long expectedSeed)
|
CompactSketch |
Intersection.intersect(Sketch a,
Sketch b)
Perform intersect set operation on the two given sketch arguments and return the result as an
ordered CompactSketch on the heap.
|
abstract CompactSketch |
Intersection.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.
|
CompactSketch |
Union.union(Sketch sketchA,
Sketch sketchB)
This implements a stateless, pair-wise union operation.
|
abstract CompactSketch |
Union.union(Sketch sketchA,
Sketch sketchB,
boolean dstOrdered,
org.apache.datasketches.memory.WritableMemory dstMem)
This implements a stateless, pair-wise union operation.
|
static CompactSketch |
CompactSketch.wrap(org.apache.datasketches.memory.Memory srcMem)
Wrap takes the CompactSketch image in given Memory and refers to it directly.
|
static CompactSketch |
CompactSketch.wrap(org.apache.datasketches.memory.Memory srcMem,
long expectedSeed)
Wrap takes the sketch image in the given Memory and refers to it directly.
|
static CompactSketch |
Sketches.wrapCompactSketch(org.apache.datasketches.memory.Memory srcMem)
|
static CompactSketch |
Sketches.wrapCompactSketch(org.apache.datasketches.memory.Memory srcMem,
long expectedSeed)
|
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.