Class SchemaRegistry
java.lang.Object
io.debezium.connector.spanner.db.metadata.SchemaRegistry
Stores schema of the Spanner change stream and database tables
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChangeStreamSchemaprivate static final Stringprivate static final org.slf4j.Loggerprivate final SchemaDaoprivate final Runnableprivate SpannerSchemaprivate final Stringprivate com.google.cloud.Timestamp -
Constructor Summary
ConstructorsConstructorDescriptionSchemaRegistry(String streamName, SchemaDao schemaDao, Runnable schemaResetTrigger) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSchema(TableId tableId, com.google.cloud.Timestamp timestamp, List<Column> rowType) private voidforceUpdateSchema(com.google.cloud.Timestamp updatedTimestamp) getWatchedTable(TableId tableId) voidinit(com.google.cloud.Timestamp timestamp) booleanupdateSchema(com.google.cloud.Timestamp updatedTimestamp) private boolean
-
Field Details
-
DATABASE_SCHEMA_NOT_CACHED
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
schemaDao
-
spannerSchema
-
changeStream
-
streamName
-
timestamp
private volatile com.google.cloud.Timestamp timestamp -
schemaResetTrigger
-
-
Constructor Details
-
SchemaRegistry
-
-
Method Details
-
init
public void init(com.google.cloud.Timestamp timestamp) -
getWatchedTable
-
checkSchema
-
validate
-
updateSchema
public boolean updateSchema(com.google.cloud.Timestamp updatedTimestamp) -
forceUpdateSchema
private void forceUpdateSchema(com.google.cloud.Timestamp updatedTimestamp) -
getAllTables
-