Class 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
    @PublicEvolving
    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.
    See Also:
    FLIP-131: Consolidate the user-facing Dataflow SDKs/APIs (and deprecate the DataSet API, Serialized Form
    • 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.api.common.io.GenericCsvInputFormat

        commentCount, commentPrefix, fieldIncluded, invalidLineCount, lineDelimiterIsLinebreak
      • Fields inherited from class org.apache.flink.api.common.io.DelimitedInputFormat

        currBuffer, currLen, currOffset, RECORD_DELIMITER
      • Fields inherited from class org.apache.flink.api.common.io.FileInputFormat

        currentSplit, ENUMERATE_NESTED_FILES_FLAG, enumerateNestedFiles, filePath, INFLATER_INPUT_STREAM_FACTORIES, minSplitSize, numSplits, openTimeout, READ_WHOLE_SPLIT_FLAG, splitLength, splitStart, stream, unsplittable
    • Constructor Summary

      Constructors 
      Constructor Description
      RowCsvInputFormat​(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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected org.apache.flink.types.Row fillRecord​(org.apache.flink.types.Row reuse, Object[] parsedValues)
      Deprecated.
       
      org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType()
      Deprecated.
       
      protected boolean parseRecord​(Object[] holders, byte[] bytes, int offset, int numBytes)
      Deprecated.
       
      • Methods 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, skipFields, supportsMultiPaths
      • Methods inherited from class org.apache.flink.api.common.io.DelimitedInputFormat

        configure, getBufferSize, getCharset, getCurrentState, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, loadConfigParameters, loadGlobalConfigParams, open, reachedEnd, readLine, reopen, setBufferSize, setDelimiter, setDelimiter, setDelimiter, setLineLengthLimit, setNumLineSamples
      • Methods inherited from class org.apache.flink.api.common.io.FileInputFormat

        acceptFile, createInputSplits, decorateInputStream, extractFileExtension, getFilePath, getFilePaths, getFileStats, getFileStats, getInflaterInputStreamFactory, getInputSplitAssigner, getMinSplitSize, getNestedFileEnumeration, getNumSplits, getOpenTimeout, getSplitLength, getSplitStart, registerInflaterInputStreamFactory, setFilePath, setFilePath, setFilePaths, setFilePaths, setFilesFilter, setMinSplitSize, setNestedFileEnumeration, setNumSplits, setOpenTimeout, testForUnsplittable
      • Methods inherited from class org.apache.flink.api.common.io.RichInputFormat

        closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
    • Constructor Detail

      • 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 Detail

      • fillRecord

        protected org.apache.flink.types.Row fillRecord​(org.apache.flink.types.Row reuse,
                                                        Object[] parsedValues)
        Deprecated.
        Specified by:
        fillRecord in class CsvInputFormat<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:
        parseRecord in class org.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:
        getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>