Class DynamicFileSplitEnumerator<SplitT extends FileSourceSplit>

java.lang.Object
org.apache.flink.connector.file.src.impl.DynamicFileSplitEnumerator<SplitT>
All Implemented Interfaces:
AutoCloseable, org.apache.flink.api.common.state.CheckpointListener, org.apache.flink.api.connector.source.SplitEnumerator<SplitT,PendingSplitsCheckpoint<SplitT>>, org.apache.flink.api.connector.source.SupportsHandleExecutionAttemptSourceEvent

@Internal public class DynamicFileSplitEnumerator<SplitT extends FileSourceSplit> extends Object implements org.apache.flink.api.connector.source.SplitEnumerator<SplitT,PendingSplitsCheckpoint<SplitT>>, org.apache.flink.api.connector.source.SupportsHandleExecutionAttemptSourceEvent
A SplitEnumerator implementation that supports dynamic filtering.

This enumerator handles DynamicFilteringEvent and filter out the desired input splits with the support of the DynamicFileEnumerator.

If the enumerator receives the first split request before any dynamic filtering data is received, it will enumerate all splits. If a DynamicFilterEvent is received during the fully enumerating, the remaining splits will be filtered accordingly.