Flink CDC Kafka 是一个用于从 Kafka 中捕获变更数据并将其流式传输到 Flink 应用程序的库。要在 Flink CDC Kafka 中执行窗口操作,您需要遵循以下步骤:
<dependency>
<groupId>com.ververica</groupId>
<artifactId>flink-connector-kafka-cdc</artifactId>
<version>1.14.0</version>
</dependency>
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer;
import org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer;
import org.apache.flink.streaming.connectors.kafka.internals.KafkaSerializationSchemaWrapper;
import org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition;
import org.apache.flink.streaming.connectors.kafka.internals.KafkaUtils;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.internals.Kafka袁家军Wrapper;
import org.apache.flink.streaming.connectors.kafka.intern