Package org.apache.flink.formats.csv
Class AbstractCsvInputFormat<T>
- java.lang.Object
-
- org.apache.flink.api.common.io.RichInputFormat<OT,org.apache.flink.core.fs.FileInputSplit>
-
- org.apache.flink.api.common.io.FileInputFormat<T>
-
- org.apache.flink.formats.csv.AbstractCsvInputFormat<T>
-
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.io.InputFormat<T,org.apache.flink.core.fs.FileInputSplit>
,org.apache.flink.core.io.InputSplitSource<org.apache.flink.core.fs.FileInputSplit>
- Direct Known Subclasses:
RowCsvInputFormat
public abstract class AbstractCsvInputFormat<T> extends org.apache.flink.api.common.io.FileInputFormat<T>
Input format that reads csv. This abstract class is responsible for cutting the boundary of InputSplit.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStream
csvInputStream
protected org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema
csvSchema
-
Constructor Summary
Constructors Constructor Description AbstractCsvInputFormat(org.apache.flink.core.fs.Path[] filePaths, org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema csvSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
open(org.apache.flink.core.fs.FileInputSplit split)
-
Methods inherited from class org.apache.flink.api.common.io.FileInputFormat
acceptFile, close, configure, createInputSplits, decorateInputStream, extractFileExtension, getFilePaths, getFileStats, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNestedFileEnumeration, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, getStatistics, getSupportedCompressionFormats, registerInflaterInputStreamFactory, setFilePath, setFilePath, setFilePaths, setFilePaths, setFilesFilter, setMinSplitSize, setNestedFileEnumeration, setNumSplits, setOpenTimeout, testForUnsplittable, toString
-
Methods inherited from class org.apache.flink.api.common.io.RichInputFormat
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
-
-
-
-
Field Detail
-
csvSchema
protected final org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema csvSchema
-
csvInputStream
protected transient InputStream csvInputStream
-
-
Method Detail
-
open
public void open(org.apache.flink.core.fs.FileInputSplit split) throws IOException
- Specified by:
open
in interfaceorg.apache.flink.api.common.io.InputFormat<T,org.apache.flink.core.fs.FileInputSplit>
- Overrides:
open
in classorg.apache.flink.api.common.io.FileInputFormat<T>
- Throws:
IOException
-
-