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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.api.common.io.FileInputFormat
org.apache.flink.api.common.io.FileInputFormat.FileBaseStatistics, org.apache.flink.api.common.io.FileInputFormat.InputSplitOpenThread -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InputStreamprotected final org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchemaFields inherited from class org.apache.flink.api.common.io.FileInputFormat
currentSplit, enumerateNestedFiles, INFLATER_INPUT_STREAM_FACTORIES, minSplitSize, numSplits, openTimeout, READ_WHOLE_SPLIT_FLAG, splitLength, splitStart, stream, unsplittable -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCsvInputFormat(org.apache.flink.core.fs.Path[] filePaths, org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema csvSchema) -
Method Summary
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, toStringMethods inherited from class org.apache.flink.api.common.io.RichInputFormat
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.api.common.io.InputFormat
nextRecord, reachedEnd
-
Field Details
-
csvSchema
protected final org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema csvSchema -
csvInputStream
-
-
Constructor Details
-
AbstractCsvInputFormat
public AbstractCsvInputFormat(org.apache.flink.core.fs.Path[] filePaths, org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema csvSchema)
-
-
Method Details
-
open
- Specified by:
openin interfaceorg.apache.flink.api.common.io.InputFormat<T,org.apache.flink.core.fs.FileInputSplit> - Overrides:
openin classorg.apache.flink.api.common.io.FileInputFormat<T>- Throws:
IOException
-