@InternalApi(value="Public visibility for re-use by other spanner-change-watcher libraries. API-breaking changes without prior notice is possible.") public class SpannerUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SpannerUtils.LogRecordBuilder |
| Modifier and Type | Field and Description |
|---|---|
static String |
FIND_COMMIT_TIMESTAMP_COLUMN_QUERY
Query for getting the column of a table that holds the commit timestamp.
|
| Constructor and Description |
|---|
SpannerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.cloud.spanner.Key |
buildKey(Iterable<String> pkColumns,
com.google.cloud.spanner.ResultSet rs)
Creates a
Key instance from an Iterable of primary key columns and a ResultSet containing the data to use for the key. |
static com.google.api.core.ApiFuture<List<String>> |
getPrimaryKeyColumns(com.google.cloud.spanner.DatabaseClient client,
TableId table)
Returns the primary key columns of a table.
|
static com.google.api.core.ApiFuture<String> |
getTimestampColumn(com.google.cloud.spanner.DatabaseClient client,
TableId table)
Returns the name of the commit timestamp column of the given table.
|
public static final String FIND_COMMIT_TIMESTAMP_COLUMN_QUERY
@InternalApi public static com.google.api.core.ApiFuture<String> getTimestampColumn(com.google.cloud.spanner.DatabaseClient client, TableId table)
@InternalApi public static com.google.api.core.ApiFuture<List<String>> getPrimaryKeyColumns(com.google.cloud.spanner.DatabaseClient client, TableId table)
Copyright © 2022 Google LLC. All rights reserved.