Package org.apache.beam.io.debezium
Class DebeziumReadSchemaTransformProvider
java.lang.Object
org.apache.beam.sdk.schemas.transforms.TypedSchemaTransformProvider<DebeziumReadSchemaTransformProvider.DebeziumReadSchemaTransformConfiguration>
org.apache.beam.io.debezium.DebeziumReadSchemaTransformProvider
- All Implemented Interfaces:
SchemaTransformProvider
@AutoService(SchemaTransformProvider.class)
public class DebeziumReadSchemaTransformProvider
extends TypedSchemaTransformProvider<DebeziumReadSchemaTransformProvider.DebeziumReadSchemaTransformConfiguration>
A schema-aware transform provider for
DebeziumIO
. This class provides a PTransform
that returns a change stream for a relational database.
The transform needs to access the source database on expansion and at pipeline
runtime. At expansion, the output PCollection
schema is
retrieved, while at runtime, the change stream is consumed.
This transform is tested against MySQL and Postgres, but it should work well for any data source supported by Debezium.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DebeziumReadSchemaTransformProvider
(Boolean isTest, Integer recordLimit, Long timeLimitMs) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull @Initialized Class
<DebeziumReadSchemaTransformProvider.DebeziumReadSchemaTransformConfiguration> protected @NonNull @Initialized SchemaTransform
Produce a SchemaTransform from ConfigT.Returns an id that uniquely represents this transform.Returns the input collection names of this transform.Returns the output collection names of this transform.Methods inherited from class org.apache.beam.sdk.schemas.transforms.TypedSchemaTransformProvider
configurationSchema, dependencies, from
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.beam.sdk.schemas.transforms.SchemaTransformProvider
description
-
Constructor Details
-
DebeziumReadSchemaTransformProvider
public DebeziumReadSchemaTransformProvider() -
DebeziumReadSchemaTransformProvider
-
-
Method Details
-
configurationClass
protected @NonNull @Initialized Class<DebeziumReadSchemaTransformProvider.DebeziumReadSchemaTransformConfiguration> configurationClass() -
from
protected @NonNull @Initialized SchemaTransform from(DebeziumReadSchemaTransformProvider.DebeziumReadSchemaTransformConfiguration configuration) Description copied from class:TypedSchemaTransformProvider
Produce a SchemaTransform from ConfigT. Can throw aInvalidConfigurationException
or aInvalidSchemaException
. -
identifier
Description copied from interface:SchemaTransformProvider
Returns an id that uniquely represents this transform. -
inputCollectionNames
Description copied from interface:SchemaTransformProvider
Returns the input collection names of this transform. -
outputCollectionNames
Description copied from interface:SchemaTransformProvider
Returns the output collection names of this transform.
-