}
public TableStat getTableStat() {
TableStat stat = new TableStat();
ColumnStat columnStat;
for (int i = 0; i < schema.getColumnNum(); i++) {
columnStat = new ColumnStat(schema.getColumn(i));
columnStat.setNumNulls(numNulls[i]);
columnStat.setMinValue(minValues.get(i));
columnStat.setMaxValue(maxValues.get(i));
stat.addColumnStat(columnStat);
}
stat.setNumRows(this.numRows);
stat.setNumBytes(this.numBytes);