| Modifier and Type | Method and Description |
|---|---|
TableId |
SpannerTableTailer.getTable() |
TableId |
SpannerTableChangeSetPoller.getTable() |
TableId |
SpannerTableChangeWatcher.getTable()
Returns the id of the table that is monitored by this watcher.
|
static TableId |
TableId.of(com.google.cloud.spanner.DatabaseId databaseId,
String table)
Creates a
TableId for the given table in the given database. |
| Modifier and Type | Method and Description |
|---|---|
List<TableId> |
SpannerDatabaseChangeSetPoller.getTables() |
Collection<TableId> |
SpannerDatabaseChangeWatcher.getTables()
Returns the ids of the tables that are monitored by this watcher.
|
List<TableId> |
SpannerDatabaseTailer.getTables() |
| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.Timestamp |
SpannerCommitTimestampRepository.get(TableId table) |
com.google.cloud.Timestamp |
CommitTimestampRepository.get(TableId table)
Returns the last seen commit timestamp for the given table.
|
com.google.cloud.Timestamp |
SpannerCommitTimestampRepository.get(TableId table,
com.google.cloud.spanner.Value shardValue) |
default com.google.cloud.Timestamp |
CommitTimestampRepository.get(TableId table,
com.google.cloud.spanner.Value shardValue)
Returns the last seen commit timestamp for the given table and shard value.
|
static com.google.api.core.ApiFuture<List<String>> |
SpannerUtils.getPrimaryKeyColumns(com.google.cloud.spanner.DatabaseClient client,
TableId table)
Returns the primary key columns of a table.
|
static com.google.api.core.ApiFuture<String> |
SpannerUtils.getTimestampColumn(com.google.cloud.spanner.DatabaseClient client,
TableId table)
Returns the name of the commit timestamp column of the given table.
|
static SpannerDatabaseChangeSetPoller.Builder.TableSelecter |
SpannerDatabaseChangeSetPoller.newBuilder(com.google.cloud.spanner.Spanner spanner,
com.google.cloud.spanner.DatabaseId databaseId,
TableId changeSetTable)
Creates a builder for a
SpannerDatabaseChangeSetPoller. |
static SpannerTableTailer.Builder |
SpannerTableTailer.newBuilder(com.google.cloud.spanner.Spanner spanner,
TableId table) |
static SpannerTableChangeSetPoller.Builder |
SpannerTableChangeSetPoller.newBuilder(com.google.cloud.spanner.Spanner spanner,
TableId table)
Creates a new
SpannerTableChangeSetPoller.Builder for the given table. |
static SpannerTableChangeSetPoller.Builder |
SpannerTableChangeSetPoller.newBuilder(com.google.cloud.spanner.Spanner spanner,
TableId changeSetTable,
TableId table)
Creates a new
SpannerTableChangeSetPoller.Builder for the given table and using the
specified change set table. |
void |
SpannerTableChangeWatcher.RowChangeCallback.rowChange(TableId table,
SpannerTableChangeWatcher.Row row,
com.google.cloud.Timestamp commitTimestamp)
Called once for each detected insert or update of a row.
|
void |
SpannerCommitTimestampRepository.set(TableId table,
com.google.cloud.Timestamp commitTimestamp) |
void |
CommitTimestampRepository.set(TableId table,
com.google.cloud.Timestamp commitTimestamp)
Sets the last seen commit timestamp for the given table.
|
void |
SpannerCommitTimestampRepository.set(TableId table,
com.google.cloud.spanner.Value shardValue,
com.google.cloud.Timestamp commitTimestamp) |
default void |
CommitTimestampRepository.set(TableId table,
com.google.cloud.spanner.Value shardValue,
com.google.cloud.Timestamp timestamp)
Sets the last seen commit timestamp for the given table and shard value.
|
| Modifier and Type | Method and Description |
|---|---|
SpannerDatabaseTailer.Builder |
SpannerDatabaseTailer.Builder.setCommitTimestampColumnFunction(Function<TableId,String> commitTimestampFunction)
This should only be set if your tables contain more than one commit timestamp
column.
|
SpannerDatabaseTailer.Builder |
SpannerDatabaseTailer.Builder.setShardProviders(Map<TableId,ShardProvider> shardProviders)
Sets the
ShardProviders to use for specific tables. |
Copyright © 2022 Google LLC. All rights reserved.