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 |
intersect(ArrayOfDoublesSketch tupleSketch,
ArrayOfDoublesCombiner combiner)
Performs a stateful intersection of the internal set with the given tupleSketch.
|
void |
reset()
Resets the internal set to the initial state, which represents the Universal Set
|
void |
update(ArrayOfDoublesSketch tupleSketch,
ArrayOfDoublesCombiner combiner)
Deprecated.
2.0.0 Please use
intersect(ArrayOfDoublesSketch, ArrayOfDoublesCombiner) . |
@Deprecated public void update(ArrayOfDoublesSketch tupleSketch, ArrayOfDoublesCombiner combiner)
intersect(ArrayOfDoublesSketch, ArrayOfDoublesCombiner)
.tupleSketch
- Input sketch to intersect with the internal set.combiner
- Method of combining two arrays of double valuespublic void intersect(ArrayOfDoublesSketch tupleSketch, ArrayOfDoublesCombiner combiner)
tupleSketch
- 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.