public class DDSketchWithExactSummaryStatistics extends WithExactSummaryStatistics<DDSketch>
| Constructor and Description |
|---|
DDSketchWithExactSummaryStatistics(IndexMapping indexMapping,
java.util.function.Supplier<Store> storeSupplier) |
DDSketchWithExactSummaryStatistics(java.util.function.Supplier<DDSketch> ddSketchConstructor) |
| Modifier and Type | Method and Description |
|---|---|
DDSketchWithExactSummaryStatistics |
copy() |
static DDSketchWithExactSummaryStatistics |
decode(Input input,
java.util.function.Supplier<Store> storeSupplier) |
static DDSketchWithExactSummaryStatistics |
decode(Input input,
java.util.function.Supplier<Store> storeSupplier,
IndexMapping indexMapping) |
void |
decodeAndMergeWith(Input input) |
void |
encode(Output output,
boolean omitIndexMapping) |
IndexMapping |
getIndexMapping() |
Store |
getNegativeValueStore() |
Store |
getPositiveValueStore() |
static DDSketchWithExactSummaryStatistics |
of(DDSketch sketch,
double count,
double min,
double max,
double sum)
Constructs an instance of
DDSketchWithExactSummaryStatistics from a DDSketch
and exact summary statistics. |
accept, accept, addToCount, addToSum, clear, getCount, getMaxValue, getMinValue, getSum, getValueAtQuantile, getValuesAtQuantiles, max, mergeWith, min, simpleSum, sketch, sum, sumCompensation, updateMax, updateMinclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAverage, isEmptypublic DDSketchWithExactSummaryStatistics(java.util.function.Supplier<DDSketch> ddSketchConstructor)
public DDSketchWithExactSummaryStatistics(IndexMapping indexMapping, java.util.function.Supplier<Store> storeSupplier)
public static DDSketchWithExactSummaryStatistics of(DDSketch sketch, double count, double min, double max, double sum)
DDSketchWithExactSummaryStatistics from a DDSketch
and exact summary statistics.sketch - the instance of DDSketchcount - the exact countmin - the exact minimum valuemax - the exact maximum valuesum - the exact sumDDSketchWithExactSummaryStatisticsjava.lang.IllegalArgumentException - if provided exact summary statistics are known to be
inconsistentjava.lang.NullPointerException - if the provided sketch is nullpublic IndexMapping getIndexMapping()
public Store getNegativeValueStore()
public Store getPositiveValueStore()
public DDSketchWithExactSummaryStatistics copy()
copy in interface QuantileSketch<WithExactSummaryStatistics<DDSketch>>copy in class WithExactSummaryStatistics<DDSketch>public void encode(Output output, boolean omitIndexMapping) throws java.io.IOException
java.io.IOExceptionpublic void decodeAndMergeWith(Input input) throws java.io.IOException
java.io.IOExceptionpublic static DDSketchWithExactSummaryStatistics decode(Input input, java.util.function.Supplier<Store> storeSupplier) throws java.io.IOException
java.io.IOExceptionpublic static DDSketchWithExactSummaryStatistics decode(Input input, java.util.function.Supplier<Store> storeSupplier, IndexMapping indexMapping) throws java.io.IOException
java.io.IOException