/** * Handle the top level object write. * * This default method is used for all types except structs, which are the * typical case. VectorizedRowBatch assumes the top level object is a * struct, so we use the first column for all other types. * @param batch the batch to write from * @param offset the row to start on * @param length the number of rows to write * @throws IOException if an error occurs during write */ void writeRootBatch(VectorizedRowBatch batch, int offset, int length) throws IOException { writeBatch(batch.cols[0], offset, length); }
/** * Handle the top level object write. * * This default method is used for all types except structs, which are the * typical case. VectorizedRowBatch assumes the top level object is a * struct, so we use the first column for all other types. * @param batch the batch to write from * @param offset the row to start on * @param length the number of rows to write * @throws IOException if an error occurs during write */ void writeRootBatch(VectorizedRowBatch batch, int offset, int length) throws IOException { writeBatch(batch.cols[0], offset, length); }