Class AbstractFileSource<T,SplitT extends FileSourceSplit>

java.lang.Object
org.apache.flink.connector.file.src.AbstractFileSource<T,SplitT>
Type Parameters:
T - The type of the events/records produced by this source.
SplitT - The subclass type of the FileSourceSplit used by the source implementation.
All Implemented Interfaces:
Serializable, org.apache.flink.api.connector.source.Source<T,SplitT,PendingSplitsCheckpoint<SplitT>>, org.apache.flink.api.connector.source.SourceReaderFactory<T,SplitT>, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
Direct Known Subclasses:
FileSource

@PublicEvolving public abstract class AbstractFileSource<T,SplitT extends FileSourceSplit> extends Object implements org.apache.flink.api.connector.source.Source<T,SplitT,PendingSplitsCheckpoint<SplitT>>, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
The base class for File Sources. The main implementation to use is the FileSource, which also has the majority of the documentation.

To read new formats, one commonly does NOT need to extend this class, but should implement a new Format Reader (like StreamFormat, BulkFormat and use it with the FileSource.

The only reason to extend this class is when a source needs a different type of split, meaning an extension of the FileSourceSplit to carry additional information.

See Also: