public abstract class ArrayOfDoublesIntersection extends Object
Modifier and Type | Method and Description |
---|---|
ArrayOfDoublesCompactSketch |
getResult()
Gets the internal set as an on-heap compact sketch.
|
ArrayOfDoublesCompactSketch |
getResult(org.apache.datasketches.memory.WritableMemory dstMem)
Gets the internal set as an off-heap compact sketch using the given memory.
|
void |
reset()
Resets the internal set to the initial state, which represents the Universal Set
|
void |
update(ArrayOfDoublesSketch sketchIn,
ArrayOfDoublesCombiner combiner)
Updates the internal set by intersecting it with the given sketch.
|
public void update(ArrayOfDoublesSketch sketchIn, ArrayOfDoublesCombiner combiner)
sketchIn
- Input sketch to intersect with the internal set.combiner
- Method of combining two arrays of double valuespublic ArrayOfDoublesCompactSketch getResult(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- Memory for the compact sketch (can be null).public ArrayOfDoublesCompactSketch getResult()
public void reset()
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.