public abstract class ArrayOfDoublesUnion extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getMaxBytes(int nomEntries,
int numValues) |
ArrayOfDoublesCompactSketch |
getResult()
Returns the resulting union in the form of a compact sketch
|
ArrayOfDoublesCompactSketch |
getResult(Memory mem)
Returns the resulting union in the form of a compact sketch
|
abstract void |
reset()
Resets the union to an empty state
|
byte[] |
toByteArray() |
void |
update(ArrayOfDoublesSketch sketchIn)
Updates the union by adding a set of entries from a given sketch
|
public void update(ArrayOfDoublesSketch sketchIn)
sketchIn - sketch to add to the unionpublic ArrayOfDoublesCompactSketch getResult(Memory mem)
mem - memory for the result (can be null)public ArrayOfDoublesCompactSketch getResult()
public abstract void reset()
public byte[] toByteArray()
public static int getMaxBytes(int nomEntries,
int numValues)
nomEntries - Nominal number of entries. Forced to the nearest power of 2 greater than
given value.numValues - Number of double values to keep for each keyCopyright © 2015–2017 Yahoo! Inc.. All rights reserved.