Class ReaderInfo
- java.lang.Object
-
- org.apache.flink.api.connector.source.ReaderInfo
-
- All Implemented Interfaces:
Serializable
@Public public final class ReaderInfo extends Object implements Serializable
A container class hosting the information of aSourceReader.The
reportedSplitsOnRegistrationcan only be provided when the source implementsSupportsSplitReassignmentOnRecovery.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReaderInfo(int subtaskId, String location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <SplitT extends SourceSplit>
ReaderInfocreateReaderInfo(int subtaskId, String location, List<SplitT> splits)booleanequals(Object o)StringgetLocation()<SplitT extends SourceSplit>
List<SplitT>getReportedSplitsOnRegistration()intgetSubtaskId()inthashCode()
-
-
-
Constructor Detail
-
ReaderInfo
public ReaderInfo(int subtaskId, String location)
-
-
Method Detail
-
createReaderInfo
public static <SplitT extends SourceSplit> ReaderInfo createReaderInfo(int subtaskId, String location, List<SplitT> splits)
-
getReportedSplitsOnRegistration
public <SplitT extends SourceSplit> List<SplitT> getReportedSplitsOnRegistration()
-
getSubtaskId
public int getSubtaskId()
- Returns:
- the ID of the subtask that runs the source reader.
-
getLocation
public String getLocation()
- Returns:
- the location of the subtask that runs this source reader.
-
-