HCatSchema schema = buildHiveSchema();
HCatInputStorageDriver isd = new RCFileInputDriver();
isd.setOriginalSchema(jc, schema);
isd.setOutputSchema(jc, schema);
isd.initialize(jc, new Properties());
byte[][] byteArray = buildBytesArray();
BytesRefArrayWritable bytesWritable = new BytesRefArrayWritable(byteArray.length);
for (int i = 0; i < byteArray.length; i++) {