Class RowCsvInputFormat
java.lang.Object
org.apache.flink.api.common.io.RichInputFormat<OT,org.apache.flink.core.fs.FileInputSplit>
org.apache.flink.api.common.io.FileInputFormat<OT>
org.apache.flink.api.common.io.DelimitedInputFormat<OT>
org.apache.flink.api.common.io.GenericCsvInputFormat<OUT>
org.apache.flink.table.sources.format.CsvInputFormat<org.apache.flink.types.Row>
org.apache.flink.table.sources.format.RowCsvInputFormat
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.io.CheckpointableInputFormat<org.apache.flink.core.fs.FileInputSplit,,Long> org.apache.flink.api.common.io.InputFormat<org.apache.flink.types.Row,,org.apache.flink.core.fs.FileInputSplit> org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>,org.apache.flink.core.io.InputSplitSource<org.apache.flink.core.fs.FileInputSplit>
@Deprecated
@Internal
public class RowCsvInputFormat
extends CsvInputFormat<org.apache.flink.types.Row>
implements org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
Deprecated.
All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a
future Flink major version. You can still build your application in DataSet, but you should
move to either the DataStream and/or Table API.
Input format that reads csv into
Row.
This class is copied from flink-java module and should be removed later.
-
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
Fields inherited from class org.apache.flink.table.sources.format.CsvInputFormat
DEFAULT_FIELD_DELIMITER, DEFAULT_LINE_DELIMITER, parsedValuesFields inherited from class org.apache.flink.api.common.io.GenericCsvInputFormat
commentCount, commentPrefix, fieldIncluded, invalidLineCount, lineDelimiterIsLinebreakFields inherited from class org.apache.flink.api.common.io.DelimitedInputFormat
currBuffer, currLen, currOffset, RECORD_DELIMITERFields 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
ConstructorsConstructorDescriptionRowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes) Deprecated.RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, boolean emptyColumnAsNull) Deprecated.RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, int[] selectedFields) Deprecated.RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, String lineDelimiter, String fieldDelimiter) Deprecated.RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, String lineDelimiter, String fieldDelimiter, int[] selectedFields) Deprecated.RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypeInfos, String lineDelimiter, String fieldDelimiter, int[] selectedFields, boolean emptyColumnAsNull) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.flink.types.RowfillRecord(org.apache.flink.types.Row reuse, Object[] parsedValues) Deprecated.org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>Deprecated.protected booleanparseRecord(Object[] holders, byte[] bytes, int offset, int numBytes) Deprecated.Methods inherited from class org.apache.flink.table.sources.format.CsvInputFormat
createDefaultMask, getFieldTypes, initializeSplit, nextRecord, readRecord, toBooleanMask, toStringMethods inherited from class org.apache.flink.api.common.io.GenericCsvInputFormat
checkAndCoSort, checkForMonotonousOrder, close, enableQuotedStringParsing, getCommentPrefix, getFieldDelimiter, getFieldParsers, getGenericFieldTypes, getNumberOfFieldsTotal, getNumberOfNonNullFields, isLenient, isSkippingFirstLineAsHeader, setCharset, setCommentPrefix, setFieldDelimiter, setFieldsGeneric, setFieldsGeneric, setFieldTypesGeneric, setLenient, setSkipFirstLineAsHeader, skipFieldsMethods inherited from class org.apache.flink.api.common.io.DelimitedInputFormat
configure, getBufferSize, getCharset, getCurrentState, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadConfigParameters, open, reachedEnd, readLine, reopen, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamplesMethods inherited from class org.apache.flink.api.common.io.FileInputFormat
acceptFile, createInputSplits, decorateInputStream, extractFileExtension, getFilePaths, getFileStats, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNestedFileEnumeration, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, getSupportedCompressionFormats, registerInflaterInputStreamFactory, setFilePath, setFilePath, setFilePaths, setFilePaths, setFilesFilter, setMinSplitSize, setNestedFileEnumeration, setNumSplits, setOpenTimeout, testForUnsplittableMethods inherited from class org.apache.flink.api.common.io.RichInputFormat
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
-
Constructor Details
-
RowCsvInputFormat
public RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypeInfos, String lineDelimiter, String fieldDelimiter, int[] selectedFields, boolean emptyColumnAsNull) Deprecated. -
RowCsvInputFormat
public RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, String lineDelimiter, String fieldDelimiter, int[] selectedFields) Deprecated. -
RowCsvInputFormat
public RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, String lineDelimiter, String fieldDelimiter) Deprecated. -
RowCsvInputFormat
public RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, int[] selectedFields) Deprecated. -
RowCsvInputFormat
public RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes, boolean emptyColumnAsNull) Deprecated. -
RowCsvInputFormat
public RowCsvInputFormat(org.apache.flink.core.fs.Path filePath, org.apache.flink.api.common.typeinfo.TypeInformation[] fieldTypes) Deprecated.
-
-
Method Details
-
fillRecord
protected org.apache.flink.types.Row fillRecord(org.apache.flink.types.Row reuse, Object[] parsedValues) Deprecated.- Specified by:
fillRecordin classCsvInputFormat<org.apache.flink.types.Row>
-
parseRecord
protected boolean parseRecord(Object[] holders, byte[] bytes, int offset, int numBytes) throws org.apache.flink.api.common.io.ParseException Deprecated.- Overrides:
parseRecordin classorg.apache.flink.api.common.io.GenericCsvInputFormat<org.apache.flink.types.Row>- Throws:
org.apache.flink.api.common.io.ParseException
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType()Deprecated.- Specified by:
getProducedTypein interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
-