Package org.apache.beam.io.debezium
Class DebeziumIO.Read<T>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<T>>
org.apache.beam.io.debezium.DebeziumIO.Read<T>
- All Implemented Interfaces:
Serializable,HasDisplayData
- Enclosing class:
DebeziumIO
Implementation of
DebeziumIO.read().- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransformshould be expanded on the givenInputT.protected SchemaApplies aCoderto the connector.Applies the given configuration to the connector.withFormatFunction(SourceRecordMapper<T> mapperFn) Applies aSourceRecordMapperto the connector.withMaxNumberOfRecords(Integer maxNumberOfRecords) Once the specified number of records has been reached, it will stop fetching them.withMaxTimeToRun(Long miliseconds) Once the connector has run for the determined amount of time, it will stop.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
Read
public Read()
-
-
Method Details
-
withConnectorConfiguration
Applies the given configuration to the connector. It cannot be null.- Parameters:
config- Configuration to be used within the connector.- Returns:
- PTransform
DebeziumIO.read()
-
withFormatFunction
Applies aSourceRecordMapperto the connector. It cannot be null.- Parameters:
mapperFn- the mapper function to be used on eachSourceRecord.- Returns:
- PTransform
DebeziumIO.read()
-
withCoder
Applies aCoderto the connector. It cannot be null- Parameters:
coder- The Coder to be used over the data.- Returns:
- PTransform
DebeziumIO.read()
-
withMaxNumberOfRecords
Once the specified number of records has been reached, it will stop fetching them. The value can be null (default) which means it will not stop.- Parameters:
maxNumberOfRecords- The maximum number of records to be fetched before stop.- Returns:
- PTransform
DebeziumIO.read()
-
withMaxTimeToRun
Once the connector has run for the determined amount of time, it will stop. The value can be null (default) which means it will not stop. This parameter is mainly intended for testing.- Parameters:
miliseconds- The maximum number of miliseconds to run before stopping the connector.- Returns:
- PTransform
DebeziumIO.read()
-
getRecordSchema
-
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.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).
- Specified by:
expandin classPTransform<PBegin,PCollection<T>>
-