buffer = ByteBuffer.allocateDirect(64 * 1024);
// comput the number of bytes, representing the null flags
nullFlags = new BitArray(schema.size());
headerSize = RECORD_SIZE + 2 + nullFlags.bytesLength();
if (enabledStats) {
this.stats = new TableStatistics(this.schema);
}