Class ArrayOfDoublesAnotB
java.lang.Object
org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesAnotB
- Direct Known Subclasses:
ArrayOfDoublesAnotBImpl
Computes a set difference of two tuple sketches of type ArrayOfDoubles
-
Method Summary
Modifier and TypeMethodDescriptionabstract ArrayOfDoublesCompactSketch
Gets the result of this operation in the form of a ArrayOfDoublesCompactSketchabstract ArrayOfDoublesCompactSketch
getResult
(org.apache.datasketches.memory.WritableMemory mem) Gets the result of this operation in the form of a ArrayOfDoublesCompactSketchabstract void
Perform A-and-not-B set operation on the two given sketches.
-
Method Details
-
update
Perform A-and-not-B set operation on the two given sketches. A null sketch is interpreted as an empty sketch. This is not an accumulating update. Calling update() more than once without calling getResult() will discard the result of previous update(). Both input sketches must have the same numValues.- Parameters:
a
- The incoming sketch for the first argumentb
- The incoming sketch for the second argument
-
getResult
Gets the result of this operation in the form of a ArrayOfDoublesCompactSketch- Returns:
- compact sketch representing the result of the operation
-
getResult
public abstract ArrayOfDoublesCompactSketch getResult(org.apache.datasketches.memory.WritableMemory mem) Gets the result of this operation in the form of a ArrayOfDoublesCompactSketch- Parameters:
mem
- memory for the result (can be null)- Returns:
- compact sketch representing the result of the operation (off-heap if memory is provided)
-