public abstract class ArrayOfDoublesUpdatableSketch extends ArrayOfDoublesSketch
| Modifier and Type | Method and Description |
|---|---|
ArrayOfDoublesCompactSketch |
compact()
Gets an on-heap compact representation of the sketch
|
ArrayOfDoublesCompactSketch |
compact(Memory dstMem)
Gets an off-heap compact representation of the sketch using the given memory
|
abstract int |
getNominalEntries()
Gets the configured nominal number of entries
|
abstract void |
trim()
Rebuilds reducing the actual number of entries to the nominal number of entries if needed
|
void |
update(byte[] key,
double[] values)
Updates this sketch with a byte[] key and double values.
|
void |
update(double key,
double[] values)
Updates this sketch with a double key and double values.
|
void |
update(int[] key,
double[] values)
Updates this sketch with a int[] key and double values.
|
void |
update(long[] key,
double[] values)
Updates this sketch with a long[] key and double values.
|
void |
update(long key,
double[] values)
Updates this sketch with a long key and double values.
|
void |
update(String key,
double[] values)
Updates this sketch with a String key and double values.
|
getEstimate, getLowerBound, getNumValues, getRetainedEntries, getTheta, getUpperBound, getValues, isEmpty, isEstimationMode, iterator, toByteArraypublic void update(long key,
double[] values)
key - The given long keyvalues - The given valuespublic void update(double key,
double[] values)
key - The given double keyvalues - The given valuespublic void update(String key, double[] values)
key - The given String keyvalues - The given valuespublic void update(byte[] key,
double[] values)
key - The given byte[] keyvalues - The given valuespublic void update(int[] key,
double[] values)
key - The given int[] keyvalues - The given valuespublic void update(long[] key,
double[] values)
key - The given long[] keyvalues - The given valuespublic abstract int getNominalEntries()
public abstract void trim()
public ArrayOfDoublesCompactSketch compact()
public ArrayOfDoublesCompactSketch compact(Memory dstMem)
dstMem - memory for the compact sketch (can be null)Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.