Package io.debezium.schema
Interface DatabaseSchema<I extends io.debezium.spi.schema.DataCollectionId>
- Type Parameters:
I- The type ofDataCollectionIdused by a given implementation
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
HistorizedDatabaseSchema<I>
- All Known Implementing Classes:
HistorizedRelationalDatabaseSchema,RelationalDatabaseSchema
public interface DatabaseSchema<I extends io.debezium.spi.schema.DataCollectionId>
extends AutoCloseable
The schema of a database. Provides information about the structures of the tables (collections etc.) it contains.
- Author:
- Gunnar Morling
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault Collection<I> Returns the collection of data collection identifiers that are being captured.booleanWhether this schema is historized (i.e. a history of all schema changes is kept which is recovered upon connector restart) or not.booleanIndicates whether or not table names are guaranteed to be fully present, regardless of whether or not a snapshot has been performed.Methods inherited from interface java.lang.AutoCloseable
close
-
Field Details
-
NO_CAPTURED_DATA_COLLECTIONS_WARNING
- See Also:
-
-
Method Details
-
schemaFor
-
dataCollectionIds
Returns the collection of data collection identifiers that are being captured.- Returns:
- a collection of data collection identifiers
-
tableInformationComplete
boolean tableInformationComplete()Indicates whether or not table names are guaranteed to be fully present, regardless of whether or not a snapshot has been performed.- Returns:
- boolean indicating if table names are present
-
assureNonEmptySchema
default void assureNonEmptySchema() -
isHistorized
boolean isHistorized()Whether this schema is historized (i.e. a history of all schema changes is kept which is recovered upon connector restart) or not.
-