Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Written by Gil Tene of Azul Systems, and released to the public domain, as explained at http://creativecommons.org/publicdomain/zero/1.0/

Author(s):
Gil Tene
 
 
 package org.HdrHistogram;
 
Used for iterating through histogram values in linear steps. The iteration is performed in steps of valueUnitsPerBucket in size, terminating when all recorded histogram values are exhausted. Note that each iteration "bucket" includes values up to and including the next bucket boundary value.
    long valueUnitsPerBucket;
Reset iterator for re-use in a fresh iteration over the same histogram data set.

Parameters:
valueUnitsPerBucket The size (in value units) of each bucket iteration.
    public void reset(final int valueUnitsPerBucket) {
        reset(valueUnitsPerBucket);
    }
    private void reset(final AbstractHistogram histogramfinal long valueUnitsPerBucket) {
        super.resetIterator(histogram);
        this. = valueUnitsPerBucket;
        this. = valueUnitsPerBucket;
    }

    

Parameters:
histogram The histogram this iterator will operate on
valueUnitsPerBucket The size (in value units) of each bucket iteration.
    public LinearIterator(final AbstractHistogram histogramfinal int valueUnitsPerBucket) {
        reset(histogramvalueUnitsPerBucket);
    }
    @Override
    public boolean hasNext() {
        if (super.hasNext()) {
            return true;
        }
        // If next iterate does not move to the next sub bucket index (which is empty if
        // if we reached this point), then we are not done iterating... Otherwise we're done.
    }
    @Override
    void incrementIterationLevel() {
    }
    @Override
    long getValueIteratedTo() {
        return ;
    }
    @Override
    boolean reachedIterationLevel() {
    }
New to GrepCode? Check out our FAQ X