public List<T> getSamplingResult() {
    return r;
  }
The simple version of reservoir sampling implementation. It is enough for the usage in HBase.
<p/>
See https://en.wikipedia.org/wiki/Reservoir_sampling.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ReservoirSample.java