public class HiveTableFileInputFormat
extends org.apache.flink.api.common.io.FileInputFormat<org.apache.flink.table.data.RowData>
FileInputFormat that wraps a HiveTableInputFormat.
We only use a HiveTableInputFormat to read the data of a FileInputSplit.
`createInputSplits`, `getInputSplitAssigner` will use FileInputFormat's logic.
| Constructor and Description |
|---|
HiveTableFileInputFormat(HiveTableInputFormat inputFormat,
HiveTablePartition hiveTablePartition) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeInputFormat() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
org.apache.flink.table.data.RowData |
nextRecord(org.apache.flink.table.data.RowData reuse) |
void |
open(org.apache.flink.core.fs.FileInputSplit fileSplit) |
void |
openInputFormat() |
boolean |
reachedEnd() |
void |
setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t) |
acceptFile, createInputSplits, decorateInputStream, extractFileExtension, getFilePath, getFilePaths, getFileStats, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNestedFileEnumeration, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, getStatistics, registerInflaterInputStreamFactory, setFilePath, setFilePath, setFilePaths, setFilePaths, setFilesFilter, setMinSplitSize, setNestedFileEnumeration, setNumSplits, setOpenTimeout, supportsMultiPaths, testForUnsplittable, toStringpublic HiveTableFileInputFormat(HiveTableInputFormat inputFormat, HiveTablePartition hiveTablePartition)
public void open(org.apache.flink.core.fs.FileInputSplit fileSplit)
throws IOException
open in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,org.apache.flink.core.fs.FileInputSplit>open in class org.apache.flink.api.common.io.FileInputFormat<org.apache.flink.table.data.RowData>IOExceptionpublic boolean reachedEnd()
throws IOException
IOExceptionpublic org.apache.flink.table.data.RowData nextRecord(org.apache.flink.table.data.RowData reuse)
throws IOException
IOExceptionpublic void configure(org.apache.flink.configuration.Configuration parameters)
configure in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,org.apache.flink.core.fs.FileInputSplit>configure in class org.apache.flink.api.common.io.FileInputFormat<org.apache.flink.table.data.RowData>public void close()
throws IOException
close in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,org.apache.flink.core.fs.FileInputSplit>close in class org.apache.flink.api.common.io.FileInputFormat<org.apache.flink.table.data.RowData>IOExceptionpublic void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
setRuntimeContext in class org.apache.flink.api.common.io.RichInputFormat<org.apache.flink.table.data.RowData,org.apache.flink.core.fs.FileInputSplit>public void openInputFormat()
throws IOException
openInputFormat in class org.apache.flink.api.common.io.RichInputFormat<org.apache.flink.table.data.RowData,org.apache.flink.core.fs.FileInputSplit>IOExceptionpublic void closeInputFormat()
throws IOException
closeInputFormat in class org.apache.flink.api.common.io.RichInputFormat<org.apache.flink.table.data.RowData,org.apache.flink.core.fs.FileInputSplit>IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.