public class HiveMapredSplitReader extends Object implements SplitReader
SplitReader
to read files using hadoop mapred RecordReader
.Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.io.Writable |
key |
protected org.apache.hadoop.io.Writable |
value |
Constructor and Description |
---|
HiveMapredSplitReader(org.apache.hadoop.mapred.JobConf jobConf,
List<String> partitionKeys,
DataType[] fieldTypes,
int[] selectedFields,
HiveTableInputSplit split,
HiveShim hiveShim) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
RowData |
nextRecord(RowData reuse)
Reads the next record from the input.
|
boolean |
reachedEnd()
Method used to check if the end of the input is reached.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
seekToRow
protected org.apache.hadoop.io.Writable key
protected org.apache.hadoop.io.Writable value
public HiveMapredSplitReader(org.apache.hadoop.mapred.JobConf jobConf, List<String> partitionKeys, DataType[] fieldTypes, int[] selectedFields, HiveTableInputSplit split, HiveShim hiveShim) throws IOException
IOException
public boolean reachedEnd() throws IOException
SplitReader
reachedEnd
in interface SplitReader
IOException
- Thrown, if an I/O error occurred.public RowData nextRecord(RowData reuse) throws IOException
SplitReader
nextRecord
in interface SplitReader
reuse
- Object that may be reused.IOException
- Thrown, if an I/O error occurred.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.