Class MetadataSpannerConfigFactory
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.MetadataSpannerConfigFactory
-
public class MetadataSpannerConfigFactory extends java.lang.ObjectThis class generates a SpannerConfig for the change stream metadata database by copying only the necessary fields from the SpannerConfig of the primary database.
-
-
Constructor Summary
Constructors Constructor Description MetadataSpannerConfigFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpannerConfigcreate(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.
-
-
-
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 databasemetadataInstanceId- The instance ID of the metadata databasemetadataDatabaseId- The database ID of the metadata database- Returns:
- the metadata SpannerConfig
-
-