Package io.debezium.storage.file.history
Class FileSchemaHistory
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistory
io.debezium.relational.history.AbstractFileBasedSchemaHistory
io.debezium.storage.file.history.FileSchemaHistory
- All Implemented Interfaces:
SchemaHistory
A
SchemaHistory implementation that stores the schema history in a local file.- Author:
- Randall Hauch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Collection<Field>static final Fieldprivate static final org.slf4j.Loggerprivate PathFields inherited from class io.debezium.relational.history.AbstractFileBasedSchemaHistory
documentReader, documentWriter, lock, records, runningFields inherited from class io.debezium.relational.history.AbstractSchemaHistory
config, loggerFields inherited from interface io.debezium.relational.history.SchemaHistory
CONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_CAPTURED_DATABASES_DDL, STORE_ONLY_CAPTURED_TABLES_DDL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) protected voiddoStart()protected voiddoStoreRecord(HistoryRecord record) booleanexists()voidbooleantoString()Methods inherited from class io.debezium.relational.history.AbstractFileBasedSchemaHistory
doPreStart, doPreStoreRecord, doStop, fromHistoryRecord, getRecords, recoverRecords, start, stop, storeRecord, toHistoryRecordMethods inherited from class io.debezium.relational.history.AbstractSchemaHistory
record, record, recoverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.relational.history.SchemaHistory
recover, recover
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
FILE_PATH
-
ALL_FIELDS
-
path
-
-
Constructor Details
-
FileSchemaHistory
public FileSchemaHistory()
-
-
Method Details
-
configure
public void configure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) - Specified by:
configurein interfaceSchemaHistory- Overrides:
configurein classAbstractSchemaHistory
-
doStoreRecord
- Overrides:
doStoreRecordin classAbstractFileBasedSchemaHistory
-
doStart
protected void doStart()- Overrides:
doStartin classAbstractFileBasedSchemaHistory
-
storageExists
public boolean storageExists() -
exists
public boolean exists()- Specified by:
existsin interfaceSchemaHistory- Overrides:
existsin classAbstractFileBasedSchemaHistory
-
initializeStorage
public void initializeStorage()- Specified by:
initializeStoragein interfaceSchemaHistory- Overrides:
initializeStoragein classAbstractSchemaHistory
-
toString
-