if (Monitor.getMmi() != null && Monitor.getMmi().tableMap != null)
for (Entry<String,TableInfo> te : Monitor.getMmi().tableMap.entrySet())
tableStats.put(Tables.getPrintableTableNameFromId(tidToNameMap, te.getKey()), te.getValue());
Map<String,Double> compactingByTable = TableInfoUtil.summarizeTableStats(Monitor.getMmi());
TableManager tableManager = TableManager.getInstance();
for (Entry<String,String> tableName_tableId : Tables.getNameToIdMap(HdfsZooInstance.getInstance()).entrySet()) {
String tableName = tableName_tableId.getKey();
String tableId = tableName_tableId.getValue();
TableInfo tableInfo = tableStats.get(tableName);
Double holdTime = compactingByTable.get(tableId);
if (holdTime == null)
holdTime = new Double(0.);
TableRow row = tableList.prepareRow();
row.add(tableId);
row.add(tableManager.getTableState(tableId));
row.add(tableInfo == null ? null : tableInfo.tablets);
row.add(tableInfo == null ? null : tableInfo.tablets - tableInfo.onlineTablets);
row.add(tableInfo == null ? null : tableInfo.recs);
row.add(tableInfo == null ? null : tableInfo.recsInMemory);
row.add(tableInfo == null ? null : tableInfo.ingestRate);