public abstract static class DebeziumIO.Read<T> extends PTransform<PBegin,PCollection<T>>
DebeziumIO.read()
.name
Constructor and Description |
---|
Read() |
Modifier and Type | Method and Description |
---|---|
PCollection<T> |
expand(PBegin input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
DebeziumIO.Read<T> |
withCoder(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.
|
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validate
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(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()
public PCollection<T> expand(PBegin input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PBegin,PCollection<T>>