public class MetadataSpannerConfigFactory
extends java.lang.Object
Constructor and Description |
---|
MetadataSpannerConfigFactory() |
Modifier and Type | Method and Description |
---|---|
static SpannerConfig |
create(SpannerConfig primaryConfig,
java.lang.String metadataInstanceId,
java.lang.String metadataDatabaseId)
Generates a SpannerConfig that can be used to access the change stream metadata database by
copying only the necessary fields from the given primary database SpannerConfig and setting the
instance ID and database ID to the supplied metadata values.
|
public static SpannerConfig create(SpannerConfig primaryConfig, java.lang.String metadataInstanceId, java.lang.String metadataDatabaseId)
primaryConfig
- The SpannerConfig for accessing the primary databasemetadataInstanceId
- The instance ID of the metadata databasemetadataDatabaseId
- The database ID of the metadata database