Package io.debezium.storage.file.history
Class FileSchemaHistory
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistory
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 final FunctionalReadWriteLockprivate Pathprivate final DocumentReaderprivate final AtomicBooleanprivate static final Charsetprivate final DocumentWriterFields inherited from class io.debezium.relational.history.AbstractSchemaHistory
config, INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, loggerFields inherited from interface io.debezium.relational.history.SchemaHistory
CONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_CAPTURED_TABLES_DDL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) booleanexists()protected voidrecoverRecords(Consumer<HistoryRecord> records) voidstart()voidstop()booleanprotected voidstoreRecord(HistoryRecord record) toString()Methods inherited from class io.debezium.relational.history.AbstractSchemaHistory
initializeStorage, record, record, recover, skipUnparseableDdlStatements, storeOnlyCapturedTablesMethods 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
-
FILE_PATH
-
ALL_FIELDS
-
UTF8
-
lock
-
writer
-
reader
-
running
-
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
-
start
public void start()- Specified by:
startin interfaceSchemaHistory- Overrides:
startin classAbstractSchemaHistory
-
storeRecord
- Specified by:
storeRecordin classAbstractSchemaHistory- Throws:
SchemaHistoryException
-
stop
public void stop()- Specified by:
stopin interfaceSchemaHistory- Overrides:
stopin classAbstractSchemaHistory
-
recoverRecords
- Specified by:
recoverRecordsin classAbstractSchemaHistory
-
storageExists
public boolean storageExists() -
exists
public boolean exists() -
toString
-