public class MapperFactory
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MapperFactory(com.google.cloud.spanner.Dialect spannerChangeStreamDatabaseDialect) |
Modifier and Type | Method and Description |
---|---|
ChangeStreamRecordMapper |
changeStreamRecordMapper()
Creates and returns a singleton instance of a mapper class capable of transforming a
Struct into a List of ChangeStreamRecord subclasses. |
PartitionMetadataMapper |
partitionMetadataMapper()
Creates and returns a single instance of a mapper class capable of transforming a
Struct into a PartitionMetadata class. |
public MapperFactory(com.google.cloud.spanner.Dialect spannerChangeStreamDatabaseDialect)
public ChangeStreamRecordMapper changeStreamRecordMapper()
Struct
into a List
of ChangeStreamRecord
subclasses.
This method is thread safe.
ChangeStreamRecordMapper
public PartitionMetadataMapper partitionMetadataMapper()
Struct
into a PartitionMetadata
class.
This method is thread safe.
PartitionMetadataMapper