Class MetadataSpannerConfigFactory


  • public class MetadataSpannerConfigFactory
    extends java.lang.Object
    This class generates a SpannerConfig for the change stream metadata database by copying only the necessary fields from the SpannerConfig of the primary database.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataSpannerConfigFactory

        public MetadataSpannerConfigFactory()
    • Method Detail

      • create

        public 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.
        Parameters:
        primaryConfig - The SpannerConfig for accessing the primary database
        metadataInstanceId - The instance ID of the metadata database
        metadataDatabaseId - The database ID of the metadata database
        Returns:
        the metadata SpannerConfig