public class HiveMapredSplitReader extends Object implements SplitReader
SplitReader to read files using hadoop mapred RecordReader.| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.hadoop.io.Writable |
key |
protected org.apache.hadoop.io.Writable |
value |
| 构造器和说明 |
|---|
HiveMapredSplitReader(org.apache.hadoop.mapred.JobConf jobConf,
List<String> partitionKeys,
org.apache.flink.table.types.DataType[] fieldTypes,
int[] selectedFields,
HiveTableInputSplit split,
HiveShim hiveShim) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
org.apache.flink.table.dataformat.BaseRow |
nextRecord(org.apache.flink.table.dataformat.BaseRow reuse)
Reads the next record from the input.
|
boolean |
reachedEnd()
Method used to check if the end of the input is reached.
|
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,
org.apache.flink.table.types.DataType[] fieldTypes,
int[] selectedFields,
HiveTableInputSplit split,
HiveShim hiveShim)
throws IOException
IOExceptionpublic boolean reachedEnd()
throws IOException
SplitReaderreachedEnd 在接口中 SplitReaderIOException - Thrown, if an I/O error occurred.public org.apache.flink.table.dataformat.BaseRow nextRecord(org.apache.flink.table.dataformat.BaseRow reuse)
throws IOException
SplitReadernextRecord 在接口中 SplitReaderreuse - Object that may be reused.IOException - Thrown, if an I/O error occurred.public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.