Class | Description |
---|---|
SpannerClient |
Service Description: Cloud Spanner API
|
SpannerClient.ListSessionsFixedSizeCollection | |
SpannerClient.ListSessionsPage | |
SpannerClient.ListSessionsPagedResponse | |
SpannerSettings |
Settings class to configure an instance of
SpannerClient . |
SpannerSettings.Builder |
Builder for SpannerSettings.
|
The interfaces provided are listed below, along with usage samples.
============= SpannerClient =============
Service Description: Cloud Spanner API
The Cloud Spanner API can be used to manage sessions and execute transactions on data stored in Cloud Spanner databases.
Sample for SpannerClient:
try (SpannerClient spannerClient = SpannerClient.create()) {
DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
Session response = spannerClient.createSession(database);
}
Copyright © 2019 Google LLC. All rights reserved.