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 ; }
Returns the statistical information about the specified table .