@InterfaceAudience.Private public class ReservoirSample<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
k |
private int |
n |
private List<T> |
r |
| Constructor and Description |
|---|
ReservoirSample(int k) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Iterator<T> iter) |
void |
add(Stream<T> s) |
void |
add(T t) |
List<T> |
getSamplingResult() |
public ReservoirSample(int k)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.