public class HiveTableInputFormat extends org.apache.flink.api.java.hadoop.common.HadoopInputFormatCommonBase<org.apache.flink.table.data.RowData,HiveTableInputSplit> implements org.apache.flink.api.common.io.CheckpointableInputFormat<HiveTableInputSplit,Long>
| 限定符和类型 | 字段和说明 |
|---|---|
protected SplitReader |
reader |
| 构造器和说明 |
|---|
HiveTableInputFormat(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.flink.table.catalog.CatalogTable catalogTable,
List<HiveTablePartition> partitions,
int[] projectedFields,
long limit,
String hiveVersion,
boolean useMapRedReader) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
HiveTableInputSplit[] |
createInputSplits(int minNumSplits) |
static HiveTableInputSplit[] |
createInputSplits(int minNumSplits,
List<HiveTablePartition> partitions,
org.apache.hadoop.mapred.JobConf jobConf) |
Long |
getCurrentState() |
org.apache.flink.core.io.InputSplitAssigner |
getInputSplitAssigner(HiveTableInputSplit[] inputSplits) |
org.apache.hadoop.mapred.JobConf |
getJobConf() |
org.apache.flink.api.common.io.statistics.BaseStatistics |
getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStats) |
org.apache.flink.table.data.RowData |
nextRecord(org.apache.flink.table.data.RowData reuse) |
void |
open(HiveTableInputSplit split) |
boolean |
reachedEnd() |
void |
reopen(HiveTableInputSplit split,
Long state) |
getCredentialsFromUGI, read, write@VisibleForTesting protected transient SplitReader reader
public HiveTableInputFormat(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.flink.table.catalog.CatalogTable catalogTable,
List<HiveTablePartition> partitions,
int[] projectedFields,
long limit,
String hiveVersion,
boolean useMapRedReader)
public org.apache.hadoop.mapred.JobConf getJobConf()
public void configure(org.apache.flink.configuration.Configuration parameters)
configure 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>public void open(HiveTableInputSplit split) throws IOException
open 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>IOExceptionpublic void reopen(HiveTableInputSplit split, Long state) throws IOException
reopen 在接口中 org.apache.flink.api.common.io.CheckpointableInputFormat<HiveTableInputSplit,Long>IOExceptionpublic Long getCurrentState()
getCurrentState 在接口中 org.apache.flink.api.common.io.CheckpointableInputFormat<HiveTableInputSplit,Long>public boolean reachedEnd()
throws IOException
reachedEnd 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>IOExceptionpublic org.apache.flink.table.data.RowData nextRecord(org.apache.flink.table.data.RowData reuse)
throws IOException
nextRecord 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>IOExceptionpublic void close()
throws IOException
close 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>IOExceptionpublic HiveTableInputSplit[] createInputSplits(int minNumSplits) throws IOException
createInputSplits 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>createInputSplits 在接口中 org.apache.flink.core.io.InputSplitSource<HiveTableInputSplit>IOExceptionpublic static HiveTableInputSplit[] createInputSplits(int minNumSplits, List<HiveTablePartition> partitions, org.apache.hadoop.mapred.JobConf jobConf) throws IOException
IOExceptionpublic org.apache.flink.api.common.io.statistics.BaseStatistics getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStats)
getStatistics 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>public org.apache.flink.core.io.InputSplitAssigner getInputSplitAssigner(HiveTableInputSplit[] inputSplits)
getInputSplitAssigner 在接口中 org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,HiveTableInputSplit>getInputSplitAssigner 在接口中 org.apache.flink.core.io.InputSplitSource<HiveTableInputSplit>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.