A B C D E F G H I L M N O R S T V W Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addCallback(SpannerTableChangeWatcher.RowChangeCallback) - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
- addCallback(SpannerTableChangeWatcher.RowChangeCallback) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeWatcher
-
Adds a
SpannerTableChangeWatcher.RowChangeCallbackfor thisSpannerDatabaseChangeWatcher. - addCallback(SpannerTableChangeWatcher.RowChangeCallback) - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
- addCallback(SpannerTableChangeWatcher.RowChangeCallback) - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller
- addCallback(SpannerTableChangeWatcher.RowChangeCallback) - Method in interface com.google.cloud.spanner.watcher.SpannerTableChangeWatcher
-
Adds a
SpannerTableChangeWatcher.RowChangeCallbackfor thisSpannerTableChangeWatcher. - addCallback(SpannerTableChangeWatcher.RowChangeCallback) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- allTables() - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder.TableSelecter
-
Instructs the
SpannerDatabaseChangeSetPollerto emit change events for all tables in the database. - allTables() - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.TableSelecter
-
Instructs the
SpannerDatabaseTailerto emit change events for all tables in the database that have a column with option ALLOW_COMMIT_TIMESTAMP=TRUE. - appendShardFilter(Statement.Builder) - Method in class com.google.cloud.spanner.watcher.FixedShardProvider
- appendShardFilter(Statement.Builder) - Method in class com.google.cloud.spanner.watcher.NotNullShardProvider
- appendShardFilter(Statement.Builder) - Method in interface com.google.cloud.spanner.watcher.ShardProvider
-
Appends the required sharding filter to the given statement.
- appendShardFilter(Statement.Builder) - Method in class com.google.cloud.spanner.watcher.TimebasedShardProvider
- asStruct() - Method in interface com.google.cloud.spanner.watcher.SpannerTableChangeWatcher.Row
-
Convert the row to a
Struct.
B
- build() - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
-
Builds the
SpannerCommitTimestampRepository. - build() - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder
-
Creates a
SpannerDatabaseChangeSetPollerfrom this builder. - build() - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
Creates a
SpannerDatabaseTailerfrom this builder. - build() - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller.Builder
-
Creates the
SpannerTableChangeSetPoller. - build() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Creates the
SpannerTableTailer. - buildKey(Iterable<String>, ResultSet) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils
-
Creates a
Keyinstance from anIterableof primary key columns and aResultSetcontaining the data to use for the key.
C
- com.google.cloud.spanner.watcher - package com.google.cloud.spanner.watcher
- CommitTimestampRepository - Interface in com.google.cloud.spanner.watcher
-
Interface for storing the last seen commit timestamp by a
SpannerTableChangeWatcherto a persistent repository. - create(String) - Static method in class com.google.cloud.spanner.watcher.NotNullShardProvider
-
Creates a
NotNullShardProviderthat will filter on the given column. - create(String, boolean) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, double) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, long) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, ByteArray) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, Date) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, Value) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, TimebasedShardProvider.Interval) - Static method in class com.google.cloud.spanner.watcher.TimebasedShardProvider
-
Creates a
TimebasedShardProviderfor the given database column and interval. - create(String, Timestamp) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, String) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
- create(String, BigDecimal) - Static method in class com.google.cloud.spanner.watcher.FixedShardProvider
D
- DatabaseClientWithChangeSets - Class in com.google.cloud.spanner.watcher
-
A wrapper around a
DatabaseClientthat automatically generates change set id's and adds a mutation for a change set for each read/write transaction. - DatabaseClientWithChangeSets.AsyncRunnerWithChangeSet - Interface in com.google.cloud.spanner.watcher
-
AsyncRunnerthat automatically creates a change set. - DatabaseClientWithChangeSets.AsyncTransactionManagerWithChangeSet - Interface in com.google.cloud.spanner.watcher
-
AsyncTransactionManagerthat automatically creates a change set. - DatabaseClientWithChangeSets.ChangeSetIdGenerator - Interface in com.google.cloud.spanner.watcher
-
Interface for generating unique id's for change sets.
- DatabaseClientWithChangeSets.ChangeSetIdSupplier - Interface in com.google.cloud.spanner.watcher
-
Supplier of change set id's.
- DatabaseClientWithChangeSets.TransactionManagerWithChangeSet - Interface in com.google.cloud.spanner.watcher
-
TransactionManagerthat automatically creates a change set. - DatabaseClientWithChangeSets.TransactionRunnerWithChangeSet - Interface in com.google.cloud.spanner.watcher
-
TransactionRunnerthat automatically creates a change set. - DAY - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a shard for each unique date.
- DAY_OF_MONTH - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a cyclic shard for each day of month (1-31).
- DAY_OF_WEEK - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a cyclic shard for each weekday (1-7).
- DAY_OF_YEAR - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a cyclic shard for each day of year (1-366).
- doStart() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
- doStart() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
- doStart() - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller
- doStart() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- doStop() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
- doStop() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
- doStop() - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller
- doStop() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
E
- equals(Object) - Method in class com.google.cloud.spanner.watcher.TableId
- except(String...) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder.TableExcluder
-
Instructs the
SpannerDatabaseChangeSetPollerto exclude these tables from change events. - except(String...) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.TableExcluder
-
Instructs the
SpannerDatabaseTailerto exclude these tables from change events. - executePartitionedUpdate(Statement, Options.UpdateOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
F
- FIND_COMMIT_TIMESTAMP_COLUMN_QUERY - Static variable in class com.google.cloud.spanner.watcher.SpannerUtils
-
Query for getting the column of a table that holds the commit timestamp.
- FixedShardProvider - Class in com.google.cloud.spanner.watcher
-
Implementation of
ShardProviderthat returns a fixed shard id.
G
- generateChangeSetId() - Method in interface com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets.ChangeSetIdGenerator
- get(TableId) - Method in interface com.google.cloud.spanner.watcher.CommitTimestampRepository
-
Returns the last seen commit timestamp for the given table.
- get(TableId) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository
- get(TableId, Value) - Method in interface com.google.cloud.spanner.watcher.CommitTimestampRepository
-
Returns the last seen commit timestamp for the given table and shard value.
- get(TableId, Value) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository
- getCatalog() - Method in class com.google.cloud.spanner.watcher.TableId
- getChangeSetId() - Method in interface com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets.ChangeSetIdSupplier
- getColumnName() - Method in class com.google.cloud.spanner.watcher.FixedShardProvider
- getColumnName() - Method in interface com.google.cloud.spanner.watcher.ShardProvider
-
Returns the name of the column that this shard provider uses.
- getCurrentShardId(ReadContext) - Method in enum com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Fetches the current shard id from the database.
- getDatabaseId() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
- getDatabaseId() - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeWatcher
-
Returns the id of the database that is being monitored for changes.
- getDatabaseId() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
- getDatabaseId() - Method in class com.google.cloud.spanner.watcher.TableId
- getFullName() - Method in class com.google.cloud.spanner.watcher.TableId
- getIndexOnColumn(DatabaseClient, TableId, String) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils
-
Returns any (secondary) index that is defined on only the given column.
- getLastPollStatement() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
-
Returns the last poll statement of this tailer.
- getPrimaryKeyColumns(DatabaseClient, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils
-
Returns the primary key columns of a table.
- getSchema() - Method in class com.google.cloud.spanner.watcher.TableId
- getShardIdExpression() - Method in enum com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Returns the SQL expression that calculates the current shard id.
- getShardValue() - Method in class com.google.cloud.spanner.watcher.FixedShardProvider
- getShardValue() - Method in class com.google.cloud.spanner.watcher.NotNullShardProvider
-
Always returns
nullas the watcher will always search for changes in all shards. - getShardValue() - Method in interface com.google.cloud.spanner.watcher.ShardProvider
-
Returns the (fixed) value that is used by this
ShardProvider. - getShardValue() - Method in class com.google.cloud.spanner.watcher.TimebasedShardProvider
- getSqlIdentifier() - Method in class com.google.cloud.spanner.watcher.TableId
- getTable() - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller
- getTable() - Method in interface com.google.cloud.spanner.watcher.SpannerTableChangeWatcher
-
Returns the id of the table that is monitored by this watcher.
- getTable() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- getTable() - Method in class com.google.cloud.spanner.watcher.TableId
- getTables() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
- getTables() - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeWatcher
-
Returns the ids of the tables that are monitored by this watcher.
- getTables() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
- getTimestampColumn(DatabaseClient, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils
-
Returns the name of the commit timestamp column of the given table.
- getValue() - Method in class com.google.cloud.spanner.watcher.TimebasedShardProvider.TimebasedShardId
-
Returns the
Valuethat should be used to set on aMutationwhen an insert/update is sent to the database.
H
- hashCode() - Method in class com.google.cloud.spanner.watcher.TableId
- HOUR_OF_DAY - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a cyclic shard for each hour of a day (0-23).
I
- includeTables(String, String...) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder.TableSelecter
-
Instructs the
SpannerDatabaseChangeSetPollerto only emit changes for these specific tables. - includeTables(String, String...) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.TableSelecter
-
Instructs the
SpannerDatabaseTailerto only emit changes for these specific tables. - isCyclic() - Method in enum com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Returns true if this interval is cyclic, i.e.
- isLastPollReturnedChanges() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
-
Returns true if the last poll for changes actually returned changes.
L
- LogRecordBuilder() - Constructor for class com.google.cloud.spanner.watcher.SpannerUtils.LogRecordBuilder
M
- MINUTE_OF_HOUR - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
TimebasedShardProvider.Interval.MINUTE_OF_HOURis mainly intended for testing purposes. - MONTH - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a shard for each month and year.
N
- newBuilder(Spanner, DatabaseId) - Static method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository
- newBuilder(Spanner, DatabaseId) - Static method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
-
Creates a builder for a
SpannerDatabaseChangeSetPoller. - newBuilder(Spanner, DatabaseId) - Static method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
-
Creates a builder for a
SpannerDatabaseTailer. - newBuilder(Spanner, DatabaseId, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller
-
Creates a builder for a
SpannerDatabaseChangeSetPoller. - newBuilder(Spanner, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller
-
Creates a new
SpannerTableChangeSetPoller.Builderfor the given table. - newBuilder(Spanner, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- newBuilder(Spanner, TableId, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller
-
Creates a new
SpannerTableChangeSetPoller.Builderfor the given table and using the specified change set table. - newChangeSetId() - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- notifyFailed(Throwable) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- NotNullShardProvider - Class in com.google.cloud.spanner.watcher
-
A
ShardProviderthat will add aWHERE ShardId IS NOT NULLclause to the filter of a polling operation.
O
- of(DatabaseClient) - Static method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Creates a
DatabaseClientthat will automatically create a change set for each read/write transaction. - of(DatabaseId, String) - Static method in class com.google.cloud.spanner.watcher.TableId
-
Creates a
TableIdfor the given table in the given database. - of(Level, String, Object, Object) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils.LogRecordBuilder
- of(Level, String, Object, Throwable) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils.LogRecordBuilder
- of(Level, String, Throwable) - Static method in class com.google.cloud.spanner.watcher.SpannerUtils.LogRecordBuilder
R
- readOnlyTransaction() - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- readOnlyTransaction(TimestampBound) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- readWriteTransaction(Options.TransactionOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Creates a
TransactionRunnerthat automatically creates a change set. - rowChange(TableId, SpannerTableChangeWatcher.Row, Timestamp) - Method in interface com.google.cloud.spanner.watcher.SpannerTableChangeWatcher.RowChangeCallback
-
Called once for each detected insert or update of a row.
- runAsync(Options.TransactionOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Returns an asynchronous transaction runner that automatically creates a change set for executing a single logical transaction with retries.
S
- set(TableId, Value, Timestamp) - Method in interface com.google.cloud.spanner.watcher.CommitTimestampRepository
-
Sets the last seen commit timestamp for the given table and shard value.
- set(TableId, Value, Timestamp) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository
- set(TableId, Timestamp) - Method in interface com.google.cloud.spanner.watcher.CommitTimestampRepository
-
Sets the last seen commit timestamp for the given table.
- set(TableId, Timestamp) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository
- setCatalogNameColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setChangeSetTableIdColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller.Builder
-
Sets the name of the column that contains the change set id in the change set table (the table registering all transactions that should be watched).
- setCommitTimestampColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setCommitTimestampColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
This should only be set if your table contains more than one commit timestamp column.
- setCommitTimestampColumnFunction(Function<TableId, String>) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
This should only be set if your tables contain more than one commit timestamp column.
- setCommitTimestampRepository(CommitTimestampRepository) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder
-
Sets a specific
CommitTimestampRepositoryto use for theSpannerTableTailers that are watching the change set table. - setCommitTimestampRepository(CommitTimestampRepository) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
Sets a specific
CommitTimestampRepositoryto use for theSpannerDatabaseTailer. - setCommitTimestampRepository(CommitTimestampRepository) - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller.Builder
-
Sets the
CommitTimestampRepositoryto use for theSpannerTableTailerthat is watching the change set table. - setCommitTimestampRepository(CommitTimestampRepository) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Sets the
CommitTimestampRepositoryto use with thisSpannerTableTailer. - setCommitTimestampsTable(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
-
Sets the name of the table to use to store the last seen commit timestamp.
- setCreateTableIfNotExists(boolean) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
-
Instructs the
SpannerCommitTimestampRepositoryto automatically create the required LAST_SEEN_COMMIT_TIMESTAMPS table. - setDatabaseNameColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setDataTableChangeSetIdColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller.Builder
-
Sets the name of the column that contains the change set id in the data table (the table that is being watched for changes).
- setExecutor(ScheduledExecutorService) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder
-
Sets a specific
ScheduledExecutorServiceto use for thisSpannerDatabaseChangeSetPoller. - setExecutor(ScheduledExecutorService) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
Sets a specific
ScheduledExecutorServiceto use for thisSpannerDatabaseTailer. - setExecutor(ScheduledExecutorService) - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller.Builder
-
Sets the executor to use for polling for changes.
- setExecutor(ScheduledExecutorService) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Sets the executor to use to poll the table and to execute the
SpannerTableChangeWatcher.RowChangeCallbacks. - setFallbackToWithQuerySeconds(int) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
A
SpannerTableTailerthat uses aFixedShardProviderwith an array of values will by default execute a simple poll query that looks like this: - setInitialCommitTimestamp(Timestamp) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
-
Sets the initial commit timestamp to use for tables that are not yet known to this repository.
- setLimit(long) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Sets the maximum number of changes to fetch for each poll query.
- setPollInterval(Duration) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseChangeSetPoller.Builder
-
Sets the poll interval to use for this
SpannerDatabaseChangeSetPoller. - setPollInterval(Duration) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
Sets the poll interval to use for this
SpannerDatabaseTailer. - setPollInterval(Duration) - Method in class com.google.cloud.spanner.watcher.SpannerTableChangeSetPoller.Builder
-
Sets the poll interval for the table.
- setPollInterval(Duration) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Sets the poll interval for the table.
- setSchemaNameColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdBoolColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdBytesColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdDateColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdFloat64Column(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdInt64Column(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdStringColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardIdTimestampColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- setShardProvider(ShardProvider) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
Sets the
ShardProviderthat thisSpannerDatabaseTailershould use for all tables that do not have a specificShardProviderset throughSpannerDatabaseTailer.Builder.setShardProviders(Map). - setShardProvider(ShardProvider) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Sets the
ShardProviderthat thisSpannerTableTailershould use. - setShardProviders(Map<TableId, ShardProvider>) - Method in interface com.google.cloud.spanner.watcher.SpannerDatabaseTailer.Builder
-
Sets the
ShardProviders to use for specific tables. - setTableHint(String) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer.Builder
-
Sets an optional table hint to use for the poll query.
- setTableNameColumn(String) - Method in class com.google.cloud.spanner.watcher.SpannerCommitTimestampRepository.Builder
- ShardProvider - Interface in com.google.cloud.spanner.watcher
-
Interface for providing a shard id for Spanner Table Change watchers.
- shouldRefresh() - Method in class com.google.cloud.spanner.watcher.TimebasedShardProvider.TimebasedShardId
-
Returns true if this
TimebasedShardProvider.TimebasedShardIdshould be refreshed based on the current system time. - singleUse() - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- singleUse(TimestampBound) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- singleUseReadOnlyTransaction() - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- singleUseReadOnlyTransaction(TimestampBound) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- SpannerCommitTimestampRepository - Class in com.google.cloud.spanner.watcher
-
CommitTimestampRepositorythat stores the last seen commit timestamp for a table in a Cloud Spanner database table. - SpannerCommitTimestampRepository.Builder - Class in com.google.cloud.spanner.watcher
-
Builder for a
SpannerCommitTimestampRepository. - SpannerDatabaseChangeSetPoller - Class in com.google.cloud.spanner.watcher
-
Implementation of the
SpannerDatabaseChangeWatcherinterface that continuously polls a change set table for new rows, and then polls the actual data tables for any changes that was part of the last seen change set. - SpannerDatabaseChangeSetPoller.Builder - Interface in com.google.cloud.spanner.watcher
-
Builder for a
SpannerDatabaseChangeSetPoller. - SpannerDatabaseChangeSetPoller.Builder.TableExcluder - Interface in com.google.cloud.spanner.watcher
-
Interface for excluding specific tables from a
SpannerDatabaseChangeSetPoller. - SpannerDatabaseChangeSetPoller.Builder.TableSelecter - Interface in com.google.cloud.spanner.watcher
-
Interface for selecting the tables that should be monitored by a
SpannerDatabaseChangeSetPoller. - SpannerDatabaseChangeWatcher - Interface in com.google.cloud.spanner.watcher
-
Interface for capturing changes to a set of tables in a Spanner database.
- SpannerDatabaseTailer - Class in com.google.cloud.spanner.watcher
-
Implementation of the
SpannerDatabaseChangeWatcherinterface that continuously polls a set of tables for changes based on commit timestamp columns in the tables. - SpannerDatabaseTailer.Builder - Interface in com.google.cloud.spanner.watcher
-
Builder for a
SpannerDatabaseTailer. - SpannerDatabaseTailer.TableExcluder - Interface in com.google.cloud.spanner.watcher
-
Interface for excluding specific tables from a
SpannerDatabaseTailer. - SpannerDatabaseTailer.TableSelecter - Interface in com.google.cloud.spanner.watcher
-
Interface for selecting the tables that should be monitored by a
SpannerDatabaseTailer. - SpannerTableChangeSetPoller - Class in com.google.cloud.spanner.watcher
-
Implementation of the
SpannerTableChangeWatcherinterface that continuously polls a change set table for new rows, and then polls an actual data table for any changes that was part of the last seen change set. - SpannerTableChangeSetPoller.Builder - Class in com.google.cloud.spanner.watcher
-
Builder for a
SpannerTableChangeSetPoller. - SpannerTableChangeWatcher - Interface in com.google.cloud.spanner.watcher
-
Interface for capturing changes to a single Spanner table.
- SpannerTableChangeWatcher.Row - Interface in com.google.cloud.spanner.watcher
-
Row is passed in to the change callback and allows access to the most recent data.
- SpannerTableChangeWatcher.RowChangeCallback - Interface in com.google.cloud.spanner.watcher
-
Interface for receiving asynchronous callbacks when a row has been inserted or updated.
- SpannerTableTailer - Class in com.google.cloud.spanner.watcher
-
Implementation of the
SpannerTableChangeWatcherinterface that continuously polls a table for changes based on a commit timestamp column in the table. - SpannerTableTailer.Builder - Class in com.google.cloud.spanner.watcher
-
Builder for a
SpannerTableTailer. - SpannerUtils - Class in com.google.cloud.spanner.watcher
-
Utils for getting commonly needed schema information from a Spanner database.
- SpannerUtils() - Constructor for class com.google.cloud.spanner.watcher.SpannerUtils
- SpannerUtils.LogRecordBuilder - Class in com.google.cloud.spanner.watcher
T
- TableId - Class in com.google.cloud.spanner.watcher
-
Unique id of a Cloud Spanner table.
- TimebasedShardProvider - Class in com.google.cloud.spanner.watcher
-
Implementation of
ShardProviderthat generates aShardIdbased on the current system time of Cloud Spanner. - TimebasedShardProvider.Interval - Enum in com.google.cloud.spanner.watcher
- TimebasedShardProvider.TimebasedShardId - Class in com.google.cloud.spanner.watcher
-
A generated timebased shard id that has been fetched from Cloud Spanner.
- toString() - Method in class com.google.cloud.spanner.watcher.TableId
- transactionManager(Options.TransactionOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Returns a transaction manager that automatically creates a change set.
- transactionManagerAsync(Options.TransactionOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Returns an asynchronous transaction manager that automatically creates a change set, and which allows manual management of transaction lifecycle.
V
- valueOf(String) - Static method in enum com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WEEK - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a shard for each week and year.
- WEEK_OF_YEAR - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a cyclic shard for each week of year (1-53).
- write(Iterable<Mutation>) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Writes the given mutations WITHOUT a change set id.
- write(String, Iterable<Mutation>) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Writes the given mutations atomically to the database using the given change set id.
- writeAtLeastOnce(Iterable<Mutation>) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Writes the given mutations WITHOUT a change set id.
- writeAtLeastOnce(String, Iterable<Mutation>) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
-
Writes the given mutations atomically to the database without replay protection using the given change set id.
- writeAtLeastOnceWithOptions(Iterable<Mutation>, Options.TransactionOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
- writeWithOptions(Iterable<Mutation>, Options.TransactionOption...) - Method in class com.google.cloud.spanner.watcher.DatabaseClientWithChangeSets
Y
- YEAR - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a shard for each year.
All Classes All Packages