public class DaoFactory
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DaoFactory(SpannerConfig changeStreamSpannerConfig,
java.lang.String changeStreamName,
SpannerConfig metadataSpannerConfig,
java.lang.String partitionMetadataTableName,
com.google.cloud.spanner.Options.RpcPriority rpcPriority,
java.lang.String jobName,
com.google.cloud.spanner.Dialect spannerChangeStreamDatabaseDialect,
com.google.cloud.spanner.Dialect metadataDatabaseDialect)
Constructs a
DaoFactory with the configuration to be used for the underlying instances. |
| Modifier and Type | Method and Description |
|---|---|
ChangeStreamDao |
getChangeStreamDao()
Creates and returns a singleton DAO instance for querying a partition change stream.
|
PartitionMetadataAdminDao |
getPartitionMetadataAdminDao()
Creates and returns a singleton DAO instance for admin operations over the partition metadata
table.
|
PartitionMetadataDao |
getPartitionMetadataDao()
Creates and returns a singleton DAO instance for accessing the partition metadata table.
|
public DaoFactory(SpannerConfig changeStreamSpannerConfig, java.lang.String changeStreamName, SpannerConfig metadataSpannerConfig, java.lang.String partitionMetadataTableName, com.google.cloud.spanner.Options.RpcPriority rpcPriority, java.lang.String jobName, com.google.cloud.spanner.Dialect spannerChangeStreamDatabaseDialect, com.google.cloud.spanner.Dialect metadataDatabaseDialect)
DaoFactory with the configuration to be used for the underlying instances.changeStreamSpannerConfig - the configuration for the change streams DAOchangeStreamName - the name of the change stream for the change streams DAOmetadataSpannerConfig - the metadata tables configurationpartitionMetadataTableName - the name of the created partition metadata tablerpcPriority - the priority of the requests made by the DAO queriesjobName - the name of the running jobpublic PartitionMetadataAdminDao getPartitionMetadataAdminDao()
This method is thread safe.
PartitionMetadataDaopublic PartitionMetadataDao getPartitionMetadataDao()
This method is thread safe.
PartitionMetadataDaopublic ChangeStreamDao getChangeStreamDao()
This method is thread safe.
ChangeStreamDao