public class NoOpEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit> extends Object implements org.apache.flink.api.connector.source.SplitEnumerator<SplitT,NoOpEnumState>
SplitEnumerator
that provides no functionality. It is basically used for sources that
does not require a coordinator.Constructor and Description |
---|
NoOpEnumerator() |
Modifier and Type | Method and Description |
---|---|
void |
addReader(int subtaskId) |
void |
addSplitsBack(List<SplitT> splits,
int subtaskId) |
void |
close() |
void |
handleSplitRequest(int subtaskId,
String requesterHostname) |
NoOpEnumState |
snapshotState(long checkpointId) |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void start()
start
in interface org.apache.flink.api.connector.source.SplitEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit,NoOpEnumState>
public void handleSplitRequest(int subtaskId, @Nullable String requesterHostname)
handleSplitRequest
in interface org.apache.flink.api.connector.source.SplitEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit,NoOpEnumState>
public void addSplitsBack(List<SplitT> splits, int subtaskId)
addSplitsBack
in interface org.apache.flink.api.connector.source.SplitEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit,NoOpEnumState>
public void addReader(int subtaskId)
addReader
in interface org.apache.flink.api.connector.source.SplitEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit,NoOpEnumState>
public NoOpEnumState snapshotState(long checkpointId) throws Exception
snapshotState
in interface org.apache.flink.api.connector.source.SplitEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit,NoOpEnumState>
Exception
public void close() throws IOException
close
in interface AutoCloseable
close
in interface org.apache.flink.api.connector.source.SplitEnumerator<SplitT extends org.apache.flink.api.connector.source.SourceSplit,NoOpEnumState>
IOException
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.