use of org.apache.accumulo.core.util.Stat in project accumulo by apache.
the class ScanSession method getIdleTimeStats.
@Override
public Stats getIdleTimeStats(long currentTime) {
long idleTime = currentTime - getLastRunTime().orElse(getCreationTime());
Preconditions.checkArgument(idleTime >= 0);
Stat copy = idleStats.copy();
copy.addStat(idleTime);
return copy;
}
Aggregations