Search in sources :

Example 1 with LlapRowRecordReader

use of org.apache.hadoop.hive.llap.LlapRowRecordReader 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<Text> reader = (LlapBaseRecordReader<Text>) 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) Text(org.apache.hadoop.io.Text) 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 Text (org.apache.hadoop.io.Text)1