程序包 com.jackmeng
类 NaiveSampler<T>
java.lang.Object
com.jackmeng.NaiveSampler<T>
- 类型参数:
T
- the type of the data to sample back as
- 所有已实现的接口:
Consumer<T>
Samples data through a time based periodc
- 作者:
- Jack Meng
-
字段详细资料
-
sampleRate
private final int sampleRate -
callback
-
counter
private int counter
-
-
构造器详细资料
-
NaiveSampler
-
-
方法详细资料
-
sampleFile
public static void sampleFile(String filePath, int sampleRate, Callback<Void, String> callback) throws IOException- 抛出:
IOException
-
accept
-