public class ThroughputLogger<T>
extends java.lang.Object
implements org.apache.flink.api.common.functions.FlatMapFunction<T,java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
private int |
elementSize |
private long |
lastLogTimeMs |
private long |
lastTotalReceived |
private static org.slf4j.Logger |
LOG |
private long |
logfreq |
private long |
totalReceived |
| Constructor and Description |
|---|
ThroughputLogger(int elementSize,
long logfreq) |
| Modifier and Type | Method and Description |
|---|---|
void |
flatMap(T element,
org.apache.flink.util.Collector<java.lang.Integer> collector) |