Search in sources :

Example 1 with LlapBaseRecordReader

use of org.apache.hadoop.hive.llap.LlapBaseRecordReader in project hive by apache.

the class LlapRowInputFormat method getRecordReader.

@Override
public RecordReader<NullWritable, Row> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException {
    LlapInputSplit llapSplit = (LlapInputSplit) split;
    LlapBaseRecordReader<BytesWritable> reader = (LlapBaseRecordReader<BytesWritable>) baseInputFormat.getRecordReader(llapSplit, job, reporter);
    return new LlapRowRecordReader(job, reader.getSchema(), reader);
}
Also used : LlapRowRecordReader(org.apache.hadoop.hive.llap.LlapRowRecordReader) LlapInputSplit(org.apache.hadoop.hive.llap.LlapInputSplit) BytesWritable(org.apache.hadoop.io.BytesWritable) LlapBaseRecordReader(org.apache.hadoop.hive.llap.LlapBaseRecordReader)

Aggregations

LlapBaseRecordReader (org.apache.hadoop.hive.llap.LlapBaseRecordReader)1 LlapInputSplit (org.apache.hadoop.hive.llap.LlapInputSplit)1 LlapRowRecordReader (org.apache.hadoop.hive.llap.LlapRowRecordReader)1 BytesWritable (org.apache.hadoop.io.BytesWritable)1