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 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 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.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 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.SpannerDatabaseTailer.Builder
-
Creates a
SpannerDatabaseTailerfrom this builder. - 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, 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
D
- 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.SpannerDatabaseTailer
- doStart() - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- doStop() - Method in class com.google.cloud.spanner.watcher.SpannerDatabaseTailer
- 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.SpannerDatabaseTailer.TableExcluder
-
Instructs the
SpannerDatabaseTailerto exclude these tables from change events.
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
- 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
- getCurrentShardId(ReadContext) - Method in enum com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Fetches the current shard id from the database.
- 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
- 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 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 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 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.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.
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.SpannerDatabaseTailer
-
Creates a builder for a
SpannerDatabaseTailer. - newBuilder(Spanner, TableId) - Static method in class com.google.cloud.spanner.watcher.SpannerTableTailer
- notifyFailed(Throwable) - Method in class com.google.cloud.spanner.watcher.SpannerTableTailer
O
- 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
- 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.
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
- 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.SpannerDatabaseTailer.Builder
-
Sets a specific
CommitTimestampRepositoryto use for theSpannerDatabaseTailer. - 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
- 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.SpannerTableTailer.Builder
-
Sets the executor to use to poll the table and to execute the
SpannerTableChangeWatcher.RowChangeCallbacks. - 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.
- 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.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. - 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. - 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. - 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. - 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
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).
Y
- YEAR - com.google.cloud.spanner.watcher.TimebasedShardProvider.Interval
-
Creates a shard for each year.
All Classes All Packages