Search in sources :

Example 6 with ReaderInfo

use of org.apache.flink.api.connector.source.ReaderInfo in project flink by apache.

the class TestingSplitEnumeratorContext method registerReader.

public void registerReader(int subtask, String hostname) {
    checkState(!registeredReaders.containsKey(subtask), "Reader already registered");
    registeredReaders.put(subtask, new ReaderInfo(subtask, hostname));
}
Also used : ReaderInfo(org.apache.flink.api.connector.source.ReaderInfo)

Aggregations

ReaderInfo (org.apache.flink.api.connector.source.ReaderInfo)6 ReaderRegistrationEvent (org.apache.flink.runtime.source.event.ReaderRegistrationEvent)1