Class CompactQuantilesDoublesSketch
java.lang.Object
org.apache.datasketches.quantiles.QuantilesDoublesSketch
org.apache.datasketches.quantiles.CompactQuantilesDoublesSketch
- All Implemented Interfaces:
MemorySegmentStatus, QuantilesAPI, QuantilesDoublesAPI
Compact sketches are inherently read only.
- Author:
- Jon Malkin
-
Field Summary
Fields inherited from interface 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 QuantilesDoublesSketch
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, hasMemorySegment, heapify, isEmpty, isEstimationMode, isOffHeap, isSameResource, iterator, putIntoMemorySegment, putIntoMemorySegment, toByteArray, toByteArray, toString, toString, toString, toString, wrap, writableWrap, writableWrapMethods inherited from interface QuantilesDoublesAPI
getCDF, getPMF, getQuantile, getQuantiles, getRank, getRanks
-
Method Details
-
isReadOnly
public boolean isReadOnly()Description copied from interface:QuantilesAPIReturns true if this sketch is read only.- Specified by:
isReadOnlyin interfaceQuantilesAPI- Specified by:
isReadOnlyin classQuantilesDoublesSketch- Returns:
- true if this sketch is read only.
-
reset
public void reset()Description copied from interface:QuantilesAPIResets this sketch to the empty state. If the sketch is read only this does nothing.The parameter k will not change.
- Specified by:
resetin interfaceQuantilesAPI- Specified by:
resetin classQuantilesDoublesSketch
-
update
public void update(double quantile) Description copied from interface:QuantilesDoublesAPIUpdates this sketch with the given item.- Parameters:
quantile- from a stream of items. NaNs are ignored.
-