Package org.apache.hadoop.hbase.util
Class ReservoirSample<T>
java.lang.Object
org.apache.hadoop.hbase.util.ReservoirSample<T>
The simple version of reservoir sampling implementation. It is enough for the usage in HBase.
See https://en.wikipedia.org/wiki/Reservoir_sampling.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
r
-
k
-
n
-
-
Constructor Details
-
ReservoirSample
-
-
Method Details
-
add
-
add
-
add
-
getSamplingResult
-