Class AbstractIncrementalSnapshotWithSchemaChangesSupportTest<T extends org.apache.kafka.connect.source.SourceConnector>
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest<T>
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotWithSchemaChangesSupportTest<T>
-
- All Implemented Interfaces:
Testing
public abstract class AbstractIncrementalSnapshotWithSchemaChangesSupportTest<T extends org.apache.kafka.connect.source.SourceConnector> extends AbstractIncrementalSnapshotTest<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
-
Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
DB_HISTORY_PATH, ROW_COUNT
-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description AbstractIncrementalSnapshotWithSchemaChangesSupportTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringalterColumnDropDefaultStatement(String table, String column, String type)protected abstract StringalterColumnDropNotNullStatement(String table, String column, String type)protected abstract StringalterColumnSetDefaultStatement(String table, String column, String type, String defaultValue)protected abstract StringalterColumnSetNotNullStatement(String table, String column, String type)protected abstract StringalterColumnStatement(String table, String column, String type)voidcolumnDefaultChanges()voidcolumnNullabilityChanges()protected abstract StringcreateTableStatement(String newTable, String copyTable)protected abstract voidexecuteRenameTable(JdbcConnection connection, String newTable)voidrenameTable()voidschemaChanges()protected abstract StringtableName(String table)-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotTest
alterTableAddColumnStatement, alterTableDropColumnStatement, config, connectorClass, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, consumeRecordsMixedWithIncrementalSnapshot, databaseConnection, getMaximumEnqueuedRecordCount, inserts, invalidTablesInTheList, pkFieldName, populate4PkTable, populateTable, populateTable, populateTable, sendAdHocSnapshotSignal, sendAdHocSnapshotSignal, signalTableName, snapshotOnly, snapshotOnlyWithRestart, snapshotPreceededBySchemaChange, startConnector, startConnector, startConnector, startConnector, tableDataCollectionId, tableName, topicName, updates, updatesLargeChunk, updatesWithRestart, valueFieldName, waitForConnectorToStart
-
Methods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Method Detail
-
alterColumnStatement
protected abstract String alterColumnStatement(String table, String column, String type)
-
alterColumnSetNotNullStatement
protected abstract String alterColumnSetNotNullStatement(String table, String column, String type)
-
alterColumnDropNotNullStatement
protected abstract String alterColumnDropNotNullStatement(String table, String column, String type)
-
alterColumnSetDefaultStatement
protected abstract String alterColumnSetDefaultStatement(String table, String column, String type, String defaultValue)
-
alterColumnDropDefaultStatement
protected abstract String alterColumnDropDefaultStatement(String table, String column, String type)
-
executeRenameTable
protected abstract void executeRenameTable(JdbcConnection connection, String newTable) throws SQLException
- Throws:
SQLException
-
createTableStatement
protected abstract String createTableStatement(String newTable, String copyTable)
-
-