Class CompactDoublesSketch
java.lang.Object
org.apache.datasketches.quantiles.DoublesSketch
org.apache.datasketches.quantiles.CompactDoublesSketch
- All Implemented Interfaces:
QuantilesAPI
,QuantilesDoublesAPI
Compact sketches are inherently read only.
- Author:
- Jon Malkin
-
Field Summary
Fields inherited from interface org.apache.datasketches.quantilescommon.QuantilesAPI
EMPTY_MSG, MEM_REQ_SVR_NULL_MSG, NOT_SINGLE_ITEM_MSG, SELF_MERGE_MSG, TGT_IS_READ_ONLY_MSG, UNSUPPORTED_MSG
-
Method Summary
Methods inherited from class org.apache.datasketches.quantiles.DoublesSketch
builder, downSample, getCDF, getCompactSerialiedSizeBytes, getCurrentCompactSerializedSizeBytes, getCurrentUpdatableSerializedSizeBytes, getK, getKFromEpsilon, getMaxItem, getMinItem, getN, getNormalizedRankError, getNormalizedRankError, getNumRetained, getPMF, getQuantile, getQuantileLowerBound, getQuantiles, getQuantileUpperBound, getRank, getRankLowerBound, getRanks, getRankUpperBound, getSerializedSizeBytes, getSortedView, getUpdatableStorageBytes, hasMemory, heapify, isDirect, isEmpty, isEstimationMode, isSameResource, iterator, putMemory, putMemory, toByteArray, toByteArray, toString, toString, toString, toString, wrap
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.datasketches.quantilescommon.QuantilesDoublesAPI
getCDF, getPMF, getQuantile, getQuantiles, getRank, getRanks
-
Method Details
-
isReadOnly
public boolean isReadOnly()Description copied from interface:QuantilesAPI
Returns true if this sketch is read only.- Specified by:
isReadOnly
in interfaceQuantilesAPI
- Specified by:
isReadOnly
in classDoublesSketch
- Returns:
- true if this sketch is read only.
-
reset
public void reset()Description copied from class:DoublesSketch
Resets this sketch to the empty state. If the sketch is read only this does nothing.The parameter k will not change.
The parameter k will not change.
- Specified by:
reset
in interfaceQuantilesAPI
- Specified by:
reset
in classDoublesSketch
-
update
public void update(double quantile) Description copied from interface:QuantilesDoublesAPI
Updates this sketch with the given item.- Parameters:
quantile
- from a stream of items. NaNs are ignored.
-