code: public synchronized TableStatInfo getTableStatInfo(TableInfo ti,
  			Transaction tx) {
  		if (isRefreshStatOn) {
  			Integer c = updateCounts.get(ti.tableName());
  			if (c != null && c > REFRESH_THRESHOLD)
  				VanillaDb.taskMgr().runTask(
  						new StatisticsRefreshTask(tx, ti.tableName()));
  		}
  
  		TableStatInfo tsi = tableStats.get(ti.tableName());
  		if (tsi == null) {
  			tsi = calcTableStats(ti, tx);
  			tableStats.put(ti.tableName(), tsi);
  		}
  		return tsi;
  	}
docs: Returns the statistical information about the specified table.
  
  @param ti
  the table's metadata
  @param tx
  the calling transaction
  @return the statistical information about the table