if (numRows == 0) {
trace(2, "empty table, no stats written");
} else {
// Construct and add the statistics entries.
for (int i=0; i < cardinality.length; i++) {
StatisticsDescriptor statDesc = new StatisticsDescriptor(
dd, uf.createUUID(), index, table, "I",
new StatisticsImpl(numRows, cardinality[i]),
i+1);
dd.addDescriptor(statDesc, null,
DataDictionary.SYSSTATISTICS_CATALOG_NUM, true, tc);