@Test public void testSmallSize() { for (int compression : compressions) { for (int i = compression; i < 4 * compression; i += compression / 3) { PercentileAggregator aggregator = createPercentileAggreator(i, null, compression); double estimate = getEstimateSize(i, 1, compression); assertTrue(Math.abs(getActualSize(aggregator) - estimate) / estimate < 0.3); aggregator.reset(); } } }
@Override public void reset() { sum = null; }
PercentileAggregator extends MeasureAggregator<PercentileCounter> { @Override public void reset() { sum = null; } }
PercentileAggregator extends MeasureAggregator<PercentileCounter> { @Override public void reset() { sum = null; } PercentileAggregator(double compression); }
PercentileAggregator extends MeasureAggregator<PercentileCounter> { @Override public void reset() { sum = null; } PercentileAggregator(double compression); @Override void reset(); @Override void aggregate(PercentileCounter value); @Override PercentileCounter aggregate(PercentileCounter value1, PercentileCounter value2); @Override PercentileCounter getState(); @Override int getMemBytesEstimate(); }
PercentileAggregator extends MeasureAggregator<PercentileCounter> { @Override public void reset() { sum = null; } PercentileAggregator(double compression); @Override void reset(); @Override void aggregate(PercentileCounter value); @Override PercentileCounter aggregate(PercentileCounter value1, PercentileCounter value2); @Override PercentileCounter getState(); @Override int getMemBytesEstimate();  }