Class KinesisStreamsSource<T>

  • Type Parameters:
    T - the data type emitted by the source
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.connector.source.Source<T,​KinesisShardSplit,​KinesisStreamsSourceEnumeratorState>, org.apache.flink.api.connector.source.SourceReaderFactory<T,​KinesisShardSplit>

    @Experimental
    public class KinesisStreamsSource<T>
    extends Object
    implements org.apache.flink.api.connector.source.Source<T,​KinesisShardSplit,​KinesisStreamsSourceEnumeratorState>
    The KinesisStreamsSource is an exactly-once parallel streaming data source that subscribes to a single AWS Kinesis data stream. It is able to handle resharding of streams, and stores its current progress in Flink checkpoints. The source will read in data from the Kinesis Data stream, deserialize it using the provided DeserializationSchema, and emit the record into the Flink job graph.

    Exactly-once semantics. To leverage Flink's checkpointing mechanics for exactly-once stream processing, the Kinesis Source is implemented with the AWS Java SDK, instead of the officially recommended AWS Kinesis Client Library. The source will store its current progress in Flink checkpoint/savepoint, and will pick up from where it left off upon restore from the checkpoint/savepoint.

    Initial starting points. The Kinesis Streams Source supports reads starting from TRIM_HORIZON, LATEST, and AT_TIMESTAMP.

    See Also:
    Serialized Form