public void reset() {
    isEmpty_ = true;
    count_ = 0;
    theta_ = (long) (Long.MAX_VALUE * (double) samplingProbability_);
    final int startingCapacity = Util.getStartingCapacity(nomEntries_, lgResizeFactor_);
    lgCurrentCapacity_ = Integer.numberOfTrailingZeros(startingCapacity);
    keys_ = new long[startingCapacity];
    summaries_ = null; // wait for the first summary to call Array.newInstance()
    setRebuildThreshold();
  }
public void reset ( ) { isEmpty_ = true ; count_ = 0 ; theta_ = ( long ) ( Long . MAX_VALUE * ( double ) samplingProbability_ ) ; final int startingCapacity = Util . getStartingCapacity ( nomEntries_ , lgResizeFactor_ ) ; lgCurrentCapacity_ = Integer . numberOfTrailingZeros ( startingCapacity ) ; keys_ = new long [ startingCapacity ] ; summaries_ = null ; setRebuildThreshold ( ) ; }
Resets this sketch an empty state.