Package org.apache.flink.api.java.io
Class TextInputFormat
- 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<String>
-
- org.apache.flink.api.java.io.TextInputFormat
-
- 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<String,org.apache.flink.core.fs.FileInputSplit>,org.apache.flink.core.io.InputSplitSource<org.apache.flink.core.fs.FileInputSplit>
@Deprecated @PublicEvolving public class TextInputFormat extends org.apache.flink.api.common.io.DelimitedInputFormat<String>
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 text files. Each line results in another element.
-
-
Constructor Summary
Constructors Constructor Description TextInputFormat(org.apache.flink.core.fs.Path filePath)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidconfigure(org.apache.flink.configuration.Configuration parameters)Deprecated.StringgetCharsetName()Deprecated.StringreadRecord(String reusable, byte[] bytes, int offset, int numBytes)Deprecated.voidsetCharsetName(String charsetName)Deprecated.booleansupportsMultiPaths()Deprecated.StringtoString()Deprecated.-
Methods inherited from class org.apache.flink.api.common.io.DelimitedInputFormat
close, getBufferSize, getCharset, getCurrentState, getDelimiter, getLineLengthLimit, getNumLineSamples, getStatistics, initializeSplit, loadConfigParameters, loadGlobalConfigParams, nextRecord, open, reachedEnd, readLine, reopen, setBufferSize, setCharset, 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, getSupportedCompressionFormats, registerInflaterInputStreamFactory, setFilePath, setFilePath, setFilePaths, setFilePaths, setFilesFilter, setMinSplitSize, setNestedFileEnumeration, setNumSplits, setOpenTimeout, testForUnsplittable
-
-
-
-
Method Detail
-
getCharsetName
public String getCharsetName()
Deprecated.
-
setCharsetName
public void setCharsetName(String charsetName)
Deprecated.
-
configure
public void configure(org.apache.flink.configuration.Configuration parameters)
Deprecated.
-
readRecord
public String readRecord(String reusable, byte[] bytes, int offset, int numBytes) throws IOException
Deprecated.- Specified by:
readRecordin classorg.apache.flink.api.common.io.DelimitedInputFormat<String>- Throws:
IOException
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classorg.apache.flink.api.common.io.FileInputFormat<String>
-
supportsMultiPaths
public boolean supportsMultiPaths()
Deprecated.- Overrides:
supportsMultiPathsin classorg.apache.flink.api.common.io.FileInputFormat<String>
-
-