Class MapperFactory
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.mapper.MapperFactory
- All Implemented Interfaces:
Serializable
Factory class for creating instances that will map a struct to a connector model. The instances
created are all singletons.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a singleton instance of a mapper class capable of transforming aStructinto aListofChangeStreamRecordsubclasses.Creates and returns a single instance of a mapper class capable of transforming aStructinto aPartitionMetadataclass.
-
Constructor Details
-
MapperFactory
-
-
Method Details
-
changeStreamRecordMapper
Creates and returns a singleton instance of a mapper class capable of transforming aStructinto aListofChangeStreamRecordsubclasses.This method is thread safe.
- Returns:
- singleton instance of the
ChangeStreamRecordMapper
-
partitionMetadataMapper
Creates and returns a single instance of a mapper class capable of transforming aStructinto aPartitionMetadataclass.This method is thread safe.
- Returns:
- singleton instance of the
PartitionMetadataMapper
-