JobConf jobConf = new JobConf();
RCFileOutputFormat outputFormat = new RCFileOutputFormat();
@SuppressWarnings("rawtypes")
RCFileInputFormat inputFormat = new RCFileInputFormat();
@SuppressWarnings("deprecation")
SerDe serde = new ColumnarSerDe();
File file = File.createTempFile("presto_test", "rc-text");
try {
FileSplit split = createTestFile(file.getAbsolutePath(), outputFormat, serde, null);
@SuppressWarnings("unchecked")
RecordReader<?, BytesRefArrayWritable> recordReader = (RecordReader<?, BytesRefArrayWritable>) inputFormat.getRecordReader(split, jobConf, Reporter.NULL);