public abstract static class DebeziumIO.Read<T>
extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<T>>
DebeziumIO.read().| Constructor and Description |
|---|
Read() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<T> |
expand(org.apache.beam.sdk.values.PBegin input) |
DebeziumIO.Read<T> |
withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Applies a
Coder to the connector. |
DebeziumIO.Read<T> |
withConnectorConfiguration(DebeziumIO.ConnectorConfiguration config)
Applies the given configuration to the connector.
|
DebeziumIO.Read<T> |
withFormatFunction(SourceRecordMapper<T> mapperFn)
Applies a
SourceRecordMapper to the connector. |
DebeziumIO.Read<T> |
withMaxNumberOfRecords(java.lang.Integer maxNumberOfRecords)
Once the specified number of records has been reached, it will stop fetching them.
|
public DebeziumIO.Read<T> withConnectorConfiguration(DebeziumIO.ConnectorConfiguration config)
config - Configuration to be used within the connector.DebeziumIO.read()public DebeziumIO.Read<T> withFormatFunction(SourceRecordMapper<T> mapperFn)
SourceRecordMapper to the connector. It cannot be null.mapperFn - the mapper function to be used on each SourceRecord.DebeziumIO.read()public DebeziumIO.Read<T> withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Coder to the connector. It cannot be nullcoder - The Coder to be used over the data.DebeziumIO.read()public DebeziumIO.Read<T> withMaxNumberOfRecords(java.lang.Integer maxNumberOfRecords)
maxNumberOfRecords - The maximum number of records to be fetched before stop.DebeziumIO.read()