void update(long time,int rows){
  count++;
  executionTimeMin=Math.min(time,executionTimeMin);
  executionTimeMax=Math.max(time,executionTimeMax);
  rowCountMin=Math.min(rows,rowCountMin);
  rowCountMax=Math.max(rows,rowCountMax);
  double delta=rows - rowCountMean;
  rowCountMean+=delta / count;
  rowCountM2+=delta * (rows - rowCountMean);
  delta=time - executionTimeMean;
  executionTimeMean+=delta / count;
  executionTimeM2+=delta * (time - executionTimeMean);
  executionTimeCumulative+=time;
  rowCountCumulative+=rows;
  lastUpdateTime=System.currentTimeMillis();
}

void update ( long time , int rows ) { count ++ ; executionTimeMin = Math . min ( time , executionTimeMin ) ; executionTimeMax = Math . max ( time , executionTimeMax ) ; rowCountMin = Math . min ( rows , rowCountMin ) ; rowCountMax = Math . max ( rows , rowCountMax ) ; double delta = rows - rowCountMean ; rowCountMean += delta / count ; rowCountM2 += delta * ( rows - rowCountMean ) ; delta = time - executionTimeMean ; executionTimeMean += delta / count ; executionTimeM2 += delta * ( time - executionTimeMean ) ; executionTimeCumulative += time ; rowCountCumulative += rows ; lastUpdateTime = System . currentTimeMillis ( ) ; }
update the statistics entry .
