public class HiveInputFormatPartitionReader extends Object implements org.apache.flink.table.filesystem.PartitionReader<HiveTablePartition,org.apache.flink.table.data.RowData>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.table.catalog.ObjectPath |
tablePath |
| Constructor and Description |
|---|
HiveInputFormatPartitionReader(org.apache.hadoop.mapred.JobConf jobConf,
String hiveVersion,
org.apache.flink.table.catalog.ObjectPath tablePath,
org.apache.flink.table.types.DataType[] fieldTypes,
String[] fieldNames,
List<String> partitionKeys,
int[] selectedFields,
boolean useMapRedReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(List<HiveTablePartition> partitions) |
org.apache.flink.table.data.RowData |
read(org.apache.flink.table.data.RowData reuse) |
public HiveInputFormatPartitionReader(org.apache.hadoop.mapred.JobConf jobConf,
String hiveVersion,
org.apache.flink.table.catalog.ObjectPath tablePath,
org.apache.flink.table.types.DataType[] fieldTypes,
String[] fieldNames,
List<String> partitionKeys,
int[] selectedFields,
boolean useMapRedReader)
public void open(List<HiveTablePartition> partitions) throws IOException
open in interface org.apache.flink.table.filesystem.PartitionReader<HiveTablePartition,org.apache.flink.table.data.RowData>IOExceptionpublic org.apache.flink.table.data.RowData read(org.apache.flink.table.data.RowData reuse)
throws IOException
read in interface org.apache.flink.table.filesystem.PartitionReader<HiveTablePartition,org.apache.flink.table.data.RowData>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.flink.table.filesystem.PartitionReader<HiveTablePartition,org.apache.flink.table.data.RowData>IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.