Class KafkaSourceConsumerFn<T>

java.lang.Object
org.apache.beam.sdk.transforms.DoFn<Map<String,String>,T>
org.apache.beam.io.debezium.KafkaSourceConsumerFn<T>
All Implemented Interfaces:
Serializable, HasDisplayData

public class KafkaSourceConsumerFn<T> extends DoFn<Map<String,String>,T>

Quick Overview

This is a Splittable DoFn used to process records fetched from supported Debezium Connectors.

Currently it has a time limiter (see KafkaSourceConsumerFn.OffsetTracker) which, if set, it will stop automatically after the specified elapsed minutes. Otherwise, it will keep running until the user explicitly interrupts it.

It might be initialized either as:

KafkaSourceConsumerFn(connectorClass, SourceRecordMapper, maxRecords, millisecondsToRun)
 
Or with a time limiter:
KafkaSourceConsumerFn(connectorClass, SourceRecordMapper, minutesToRun)
See Also: