@EvolvingApi public final class DebeziumCdcSources extends Object
Note: It is better to use first-class CDC sources than this generic one
because it has less functionality. For example, these sources lack
sequence numbers, so functionality based on them (like reordering
protection in CdcSinks
) is disabled.
Modifier and Type | Class and Description |
---|---|
static class |
DebeziumCdcSources.Builder<T>
A builder to configure a CDC source that streams the change data from
a Debezium-supported database to Hazelcast Jet.
|
Modifier and Type | Method and Description |
---|---|
static DebeziumCdcSources.Builder<ChangeRecord> |
debezium(String name,
Class<?> connectorClass)
Creates a CDC source that streams change data from a
Debezium-supported database to a Hazelcast Jet pipeline.
|
static DebeziumCdcSources.Builder<ChangeRecord> |
debezium(String name,
String connectorClass)
Creates a CDC source that streams change data from a
Debezium-supported database to a Hazelcast Jet pipeline.
|
static DebeziumCdcSources.Builder<Map.Entry<String,String>> |
debeziumJson(String name,
Class<?> connectorClass)
Creates a CDC source that streams change data from a
Debezium-supported database to a Hazelcast Jet pipeline.
|
static DebeziumCdcSources.Builder<Map.Entry<String,String>> |
debeziumJson(String name,
String connectorClass)
Creates a CDC source that streams change data from a
Debezium-supported database to a Hazelcast Jet pipeline.
|
@Nonnull public static DebeziumCdcSources.Builder<ChangeRecord> debezium(@Nonnull String name, @Nonnull String connectorClass)
name
- the name of this source, must unique, will be passed
to the underlying Kafka Connect sourceconnectorClass
- name of the Debezium connector class@Nonnull public static DebeziumCdcSources.Builder<ChangeRecord> debezium(@Nonnull String name, @Nonnull Class<?> connectorClass)
name
- the name of this source, must unique, will be passed
to the underlying Kafka Connect sourceconnectorClass
- class of the Debezium Connector which will be used for the CDC@Nonnull public static DebeziumCdcSources.Builder<Map.Entry<String,String>> debeziumJson(@Nonnull String name, @Nonnull String connectorClass)
Differs from the regular source
in that it does the least possible amount of processing of the
raw Debezium data. Just returns a pair of JSON strings, one is
the key of the Debezium CDC event, the other the value.
name
- the name of this source, must unique, will be passed
to the underlying Kafka Connect sourceconnectorClass
- name of the Debezium connector class@Nonnull public static DebeziumCdcSources.Builder<Map.Entry<String,String>> debeziumJson(@Nonnull String name, @Nonnull Class<?> connectorClass)
Differs from the regular source
in that it does the least possible amount of processing of the
raw Debezium data. Just returns a pair of JSON strings, one is
the key of the Debezium CDC event, the other the value.
name
- the name of this source, must unique, will be passed
to the underlying Kafka Connect sourceconnectorClass
- class of the Debezium Connector which will be used for the CDCCopyright © 2023 Hazelcast, Inc.. All rights reserved.