Class ReaderRegistrationEvent

  • All Implemented Interfaces:
    Serializable, OperatorEvent

    public class ReaderRegistrationEvent
    extends Object
    implements OperatorEvent
    The SourceOperator should always send the ReaderRegistrationEvent with the `reportedSplitsOnRegistration` list. But it will not add the splits to readers if SupportsSplitReassignmentOnRecovery is implemented.
    See Also:
    Serialized Form
    • Constructor Detail

      • ReaderRegistrationEvent

        public ReaderRegistrationEvent​(int subtaskId,
                                       String location)
    • Method Detail

      • createReaderRegistrationEvent

        public static <SplitT extends org.apache.flink.api.connector.source.SourceSplit> ReaderRegistrationEvent createReaderRegistrationEvent​(int subtaskId,
                                                                                                                                               String location,
                                                                                                                                               List<SplitT> splits,
                                                                                                                                               org.apache.flink.core.io.SimpleVersionedSerializer<SplitT> splitSerializer)
                                                                                                                                        throws IOException
        Throws:
        IOException
      • splits

        public <SplitT extends org.apache.flink.api.connector.source.SourceSplit> List<SplitT> splits​(org.apache.flink.core.io.SimpleVersionedSerializer<SplitT> splitSerializer)
                                                                                               throws IOException
        Throws:
        IOException
      • subtaskId

        public int subtaskId()
      • location

        public String location()