Interface KinesisShardAssigner.Context

  • Enclosing interface:
    KinesisShardAssigner

    @Experimental
    public static interface KinesisShardAssigner.Context
    Immutable information about the Flink cluster useful for deciding which subtask to assign a given split.
    • Method Detail

      • getCurrentSplitAssignment

        Map<Integer,​Set<KinesisShardSplit>> getCurrentSplitAssignment()
        Provides the current split distribution between subtasks.
        Returns:
        current assignment of splits. Key is subtaskId, value is the currently assigned splits.
      • getPendingSplitAssignments

        Map<Integer,​List<KinesisShardSplit>> getPendingSplitAssignments()
        Provides the pending split assignments in the current batch of splits.
        Returns:
        pending split assignments. Key is subtaskId, value is the currently assigned splits.
      • getRegisteredReaders

        Map<Integer,​org.apache.flink.api.connector.source.ReaderInfo> getRegisteredReaders()
        Provides information about the currently registered readers on the Flink cluster.
        Returns:
        currently registered readers in the Flink cluster. Key is subtaskId, value is information about the registered reader.