B C D E F H I L M N P R S T
B
- bucketIndexFor(T) - Method in interface com.pervasivecode.utils.stats.histogram.BucketSelector
-
Determine the index of the bucket that a specified value should be counted in.
- bucketIndexFor(T) - Method in class com.pervasivecode.utils.stats.histogram.ConverterBasedBucketSelector
- bucketIndexFor(T) - Method in class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
- BucketingSystem<T> - Interface in com.pervasivecode.utils.stats.histogram
-
Common methods for things that put values into a fixed number of adjacent intervals.
- BucketSelector<T> - Interface in com.pervasivecode.utils.stats.histogram
-
This object determines which histogram bucket a particular value belongs in.
- BucketSelectors - Class in com.pervasivecode.utils.stats.histogram
-
BucketSelector factory methods for basic bucketing strategies.
- BucketSelectors() - Constructor for class com.pervasivecode.utils.stats.histogram.BucketSelectors
- bucketUpperBound(int) - Method in interface com.pervasivecode.utils.stats.histogram.BucketingSystem
-
Get the upper-bound value of the specified bucket.
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.ConverterBasedBucketSelector
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
- build() - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
-
Validate the countByBucket and bucketUpperBounds values and create an ImmutableHistogram.
- builder() - Static method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Obtain a builder that allows construction of a new instance.
- Builder() - Constructor for class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
C
- com.pervasivecode.utils.stats - package com.pervasivecode.utils.stats
- com.pervasivecode.utils.stats.histogram - package com.pervasivecode.utils.stats.histogram
- ConcurrentHistogram<T> - Class in com.pervasivecode.utils.stats.histogram
-
A thread-safe Histogram based on the
AtomicLongArray
class. - ConcurrentHistogram(BucketSelector<T>) - Constructor for class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- ConsoleHistogramFormatter<T> - Class in com.pervasivecode.utils.stats.histogram
-
Format
Histogram
contents for a text display. - ConsoleHistogramFormatter(Function<T, String>, int) - Constructor for class com.pervasivecode.utils.stats.histogram.ConsoleHistogramFormatter
-
Create a ConsoleHistogramFormatter that formats upper bound values using
upperBoundValueFormatter
. - ConverterBasedBucketSelector<T> - Class in com.pervasivecode.utils.stats.histogram
-
A BucketSelector based on a
Converter
between upper-bound-values and bucket indices. - ConverterBasedBucketSelector(Converter<T, Integer>, int) - Constructor for class com.pervasivecode.utils.stats.histogram.ConverterBasedBucketSelector
-
Create a BucketSelector using a
Converter
that converts an upper-bound-value into a bucket index and vice-versa. - copyOf(Histogram<V>) - Static method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Make an immutable copy of another histogram with the same value type, size, bucket upper bounds and value counts.
- countInBucket(int) - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- countInBucket(int) - Method in interface com.pervasivecode.utils.stats.histogram.Histogram
-
Get the number of elements that were counted in the specified bucket.
- countInBucket(int) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- countValue(T) - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- countValue(T) - Method in interface com.pervasivecode.utils.stats.histogram.MutableHistogram
-
Count the specified value by assigning it to a bucket and incrementing the stored count of values that belong to that bucket.
D
- DurationEstimator - Interface in com.pervasivecode.utils.stats
-
This object can estimate the rate at which a repeatedly set progress value is currently changing, and can estimate how long it will take for that value to reach a specified target value.
E
- estimatedRateAsAmountPerSecond() - Method in interface com.pervasivecode.utils.stats.DurationEstimator
-
Return an estimate of the current rate of progress, in terms of user-defined progress units per second.
- estimatedRateAsAmountPerSecond() - Method in class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Get an estimate of the rate of change of the progress amount per second.
- estimateTimeToProcessAmount(long) - Method in interface com.pervasivecode.utils.stats.DurationEstimator
-
Return an estimate of the amount of time that must elapse starting from the current time, in order for the specified amount to be processed.
- estimateTimeToProcessAmount(long) - Method in class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Using the current estimatedRateAsAmountPerSecond, predict how much time would be needed to process a specified amount starting now.
- exponential(double, double, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are
double
values that are part of an exponential series.
F
- format(Histogram<T>) - Method in class com.pervasivecode.utils.stats.histogram.ConsoleHistogramFormatter
H
- Histogram<T> - Interface in com.pervasivecode.utils.stats.histogram
-
This is a data structure that holds frequency counts of values for use in a histogram.
- Histograms - Class in com.pervasivecode.utils.stats.histogram
-
Utility methods for working with Histograms.
- Histograms() - Constructor for class com.pervasivecode.utils.stats.histogram.Histograms
I
- ImmutableHistogram<T> - Class in com.pervasivecode.utils.stats.histogram
-
An immutable representation of a Histogram.
- ImmutableHistogram() - Constructor for class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- ImmutableHistogram.Builder<T> - Class in com.pervasivecode.utils.stats.histogram
-
An object that can be used to create an
ImmutableHistogram
. - IrregularSetBucketSelector<T> - Class in com.pervasivecode.utils.stats.histogram
-
This BucketSelector counts values in buckets that have an irregular set of bucket upper bound values, such as {1, 5, 7}, that are most easily expressed explicitly, rather than by a formula that generates a series of upper bound values.
- IrregularSetBucketSelector(SortedSet<T>) - Constructor for class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
-
Create a IrregularSetBucketSelector from a set of upper-bound values.
L
- linearLongValues(long, long, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are evenly distributed between a smallest and largest value.
M
- MutableHistogram<T> - Interface in com.pervasivecode.utils.stats.histogram
-
This is a mutable version of the Histogram interface, adding a method for counting additional values.
N
- numBuckets() - Method in interface com.pervasivecode.utils.stats.histogram.BucketingSystem
-
Get the total number of buckets.
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.ConverterBasedBucketSelector
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
P
- powerOf2LongValues(int, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are consecutive whole-number powers of 2.
R
- recordAmountSoFar(long) - Method in interface com.pervasivecode.utils.stats.DurationEstimator
-
Set the progress counter to the specified value.
- recordAmountSoFar(long) - Method in class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Replace the existing progress amount value with a new one.
S
- setBucketUpperBounds(List<T>) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
-
Set the upper bounds of each of the buckets that has an upper bound, all at once.
- setCountByBucket(List<Long>) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
-
Set the count of values per bucket, all at once.
- SimpleDurationEstimator - Class in com.pervasivecode.utils.stats
-
This is a trivial DurationEstimator that just uses the total amount processed divided by the total time elapsed to estimate the rate (that is, it's blind to any short-term fluctuations in rate that may occur, and only examines the entire process).
- SimpleDurationEstimator(TimeSource) - Constructor for class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Create and start a SimpleDurationEstimator, with an initial progress value of zero.
- SimpleDurationEstimator(TimeSource, long) - Constructor for class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Create and start a SimpleDurationEstimator, with an initial progress value specified by the caller.
T
- transform(BucketSelector<T>, Converter<V, T>) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Wrap a BucketSelector that handles one value type inside one that handles a different value type, using a Converter that converts individual values from one type to the other.
- transformValues(Histogram<T>, Function<T, V>) - Static method in class com.pervasivecode.utils.stats.histogram.Histograms
-
Transform a histogram's upper bound values using a Function.