Class ArrayOfDoublesAnotB
java.lang.Object
org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesAnotB
public abstract class ArrayOfDoublesAnotB extends Object
Computes a set difference of two tuple sketches of type ArrayOfDoubles
-
Method Summary
Modifier and Type Method Description abstract ArrayOfDoublesCompactSketchgetResult()Gets the result of this operation in the form of a ArrayOfDoublesCompactSketchabstract ArrayOfDoublesCompactSketchgetResult(org.apache.datasketches.memory.WritableMemory mem)Gets the result of this operation in the form of a ArrayOfDoublesCompactSketchabstract voidupdate(ArrayOfDoublesSketch a, ArrayOfDoublesSketch b)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()- 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)
-