Class SpannerTestClients
java.lang.Object
io.github.flink.gcp.connector.testutils.spanner.SpannerTestClients
Stock Spanner clients pointed at an emulator endpoint.
Harness-owned and deliberately unshaded: in the SQL module's smoke test this runs beside the uber-jar's relocated copy, so that the two demonstrably coexist on one classpath.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.cloud.spanner.SpannerforEmulator(String endpoint, String project) Opens a client against the emulator atendpoint(host:port).
-
Method Details
-
forEmulator
Opens a client against the emulator atendpoint(host:port).The returned service belongs to the caller and must be closed.
- Parameters:
endpoint- the emulator endpointproject- the project that resources are addressed under- Returns:
- the stock client
-