Class CsvInputFormat<OUT>
- 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<OUT>
-
- Type Parameters:
OUT-
- 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<OUT,org.apache.flink.core.fs.FileInputSplit>,org.apache.flink.core.io.InputSplitSource<org.apache.flink.core.fs.FileInputSplit>
- Direct Known Subclasses:
RowCsvInputFormat
@Deprecated @Internal public abstract class CsvInputFormat<OUT> extends org.apache.flink.api.common.io.GenericCsvInputFormat<OUT>
Deprecated.InputFormat that reads csv files.This class is copied from
flink-javamodule and should be removed later.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FIELD_DELIMITERDeprecated.static StringDEFAULT_LINE_DELIMITERDeprecated.protected Object[]parsedValuesDeprecated.-
Fields inherited from class org.apache.flink.api.common.io.GenericCsvInputFormat
commentCount, commentPrefix, fieldIncluded, invalidLineCount, lineDelimiterIsLinebreak
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCsvInputFormat(org.apache.flink.core.fs.Path filePath)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static boolean[]createDefaultMask(int size)Deprecated.protected abstract OUTfillRecord(OUT reuse, Object[] parsedValues)Deprecated.Class<?>[]getFieldTypes()Deprecated.protected voidinitializeSplit(org.apache.flink.core.fs.FileInputSplit split, Long offset)Deprecated.OUTnextRecord(OUT record)Deprecated.OUTreadRecord(OUT reuse, byte[] bytes, int offset, int numBytes)Deprecated.protected static boolean[]toBooleanMask(int[] sourceFieldIndices)Deprecated.StringtoString()Deprecated.-
Methods inherited from class org.apache.flink.api.common.io.GenericCsvInputFormat
checkAndCoSort, checkForMonotonousOrder, close, enableQuotedStringParsing, getCommentPrefix, getFieldDelimiter, getFieldParsers, getGenericFieldTypes, getNumberOfFieldsTotal, getNumberOfNonNullFields, isLenient, isSkippingFirstLineAsHeader, parseRecord, setCharset, setCommentPrefix, setFieldDelimiter, setFieldsGeneric, setFieldsGeneric, setFieldTypesGeneric, setLenient, setSkipFirstLineAsHeader, skipFields
-
Methods 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, setNumLineSamples
-
Methods 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, testForUnsplittable
-
-
-
-
Field Detail
-
DEFAULT_LINE_DELIMITER
public static final String DEFAULT_LINE_DELIMITER
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_FIELD_DELIMITER
public static final String DEFAULT_FIELD_DELIMITER
Deprecated.- See Also:
- Constant Field Values
-
parsedValues
protected transient Object[] parsedValues
Deprecated.
-
-
Method Detail
-
initializeSplit
protected void initializeSplit(org.apache.flink.core.fs.FileInputSplit split, Long offset) throws IOExceptionDeprecated.- Overrides:
initializeSplitin classorg.apache.flink.api.common.io.GenericCsvInputFormat<OUT>- Throws:
IOException
-
nextRecord
public OUT nextRecord(OUT record) throws IOException
Deprecated.- Specified by:
nextRecordin interfaceorg.apache.flink.api.common.io.InputFormat<OUT,org.apache.flink.core.fs.FileInputSplit>- Overrides:
nextRecordin classorg.apache.flink.api.common.io.DelimitedInputFormat<OUT>- Throws:
IOException
-
readRecord
public OUT readRecord(OUT reuse, byte[] bytes, int offset, int numBytes) throws IOException
Deprecated.- Specified by:
readRecordin classorg.apache.flink.api.common.io.DelimitedInputFormat<OUT>- Throws:
IOException
-
getFieldTypes
public Class<?>[] getFieldTypes()
Deprecated.
-
createDefaultMask
protected static boolean[] createDefaultMask(int size)
Deprecated.
-
toBooleanMask
protected static boolean[] toBooleanMask(int[] sourceFieldIndices)
Deprecated.
-
-