byte[][] fieldsData, Configuration conf) throws IOException {
fs.delete(file, true);
conf.setInt(RCFile.COLUMN_NUMBER_CONF_STR, fieldsData.length);
RCFile.Writer writer = new RCFile.Writer(fs, conf, file, null,
new DefaultCodec());
BytesRefArrayWritable bytes = new BytesRefArrayWritable(fieldsData.length);
for (int i = 0; i < fieldsData.length; i++) {
BytesRefWritable cu;
cu = new BytesRefWritable(fieldsData[i], 0, fieldsData[i].length);