public abstract class ArrayOfDoublesIntersection extends Object
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesQuickSelectSketch |
createSketch(int nomEntries,
int numValues,
long seed) |
ArrayOfDoublesCompactSketch |
getResult()
Gets the internal set as an on-heap compact sketch.
|
ArrayOfDoublesCompactSketch |
getResult(org.apache.datasketches.memory.WritableMemory dstMem)
Gets the result of stateful intersections so far.
|
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
|
public 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()
public ArrayOfDoublesCompactSketch getResult(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- Memory for the compact sketch (can be null).public void reset()
protected abstract org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesQuickSelectSketch createSketch(int nomEntries, int numValues, long seed)
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.