Assert.assertEquals(col, table.getColumns());
for (int k = 0; k < col; k ++) {
RawColumn rawCol = table.getRawColumn(k);
rawCol.createPartition(0);
TachyonFile file = rawCol.getPartition(0);
OutStream outStream = file.getOutStream(WriteType.MUST_CACHE);
outStream.write(TestUtils.getIncreasingByteArray(10));
outStream.close();
}
for (int k = 0; k < col; k ++) {
RawColumn rawCol = table.getRawColumn(k);
TachyonFile file = rawCol.getPartition(0, true);
TachyonByteBuffer buf = file.readByteBuffer(0);
Assert.assertEquals(TestUtils.getIncreasingByteBuffer(10), buf.mData);
buf.close();
}
for (int k = 0; k < col; k ++) {
RawColumn rawCol = table.getRawColumn(k);
TachyonFile file = rawCol.getPartition(0, true);
TachyonByteBuffer buf = file.readByteBuffer(0);
Assert.assertEquals(TestUtils.getIncreasingByteBuffer(10), buf.mData);
buf.close();
}
}