@SuppressWarnings("unchecked")
@Override
protected void updateStatsRow(Object rowKey, Object[] rowValues) {
Pair<Snapshot, Table> p = (Pair<Snapshot, Table>) rowKey;
Snapshot s = p.getFirst();
Table t = p.getSecond();
double duration = 0;
double throughput = 0;
if (s.timeFinished != 0) {
duration = (s.timeFinished - s.timeStarted) / 1000.0;
throughput = (s.bytesWritten / (1024.0 * 1024.0)) / duration;