Search in sources :

Example 6 with Stat

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;
}
Also used : Stat(org.apache.accumulo.core.util.Stat)

Aggregations

Stat (org.apache.accumulo.core.util.Stat)6 Scanner (org.apache.accumulo.core.client.Scanner)2 Key (org.apache.accumulo.core.data.Key)2 Range (org.apache.accumulo.core.data.Range)2 Value (org.apache.accumulo.core.data.Value)2 Text (org.apache.hadoop.io.Text)2 ArrayList (java.util.ArrayList)1 TreeMap (java.util.TreeMap)1 Connector (org.apache.accumulo.core.client.Connector)1 ZooKeeperInstance (org.apache.accumulo.core.client.ZooKeeperInstance)1 PasswordToken (org.apache.accumulo.core.client.security.tokens.PasswordToken)1