public abstract class HistorizedRelationalDatabaseConnectorConfig extends RelationalDatabaseConnectorConfig
RelationalDatabaseConnectorConfig.DecimalHandlingMode
CommonConnectorConfig.BinaryHandlingMode, CommonConnectorConfig.EventProcessingFailureHandlingMode, CommonConnectorConfig.Version
Modifier and Type | Field and Description |
---|---|
protected static ConfigDefinition |
CONFIG_DEFINITION |
private Class<? extends org.apache.kafka.connect.source.SourceConnector> |
connectorClass |
static Field |
DATABASE_HISTORY
The database history class is hidden in the
#configDef() since that is designed to work with a user interface,
and in these situations using Kafka is the only way to go. |
protected static int |
DEFAULT_SNAPSHOT_FETCH_SIZE |
private String |
logicalName |
private boolean |
useCatalogBeforeSchema |
COLUMN_BLACKLIST, COLUMN_EXCLUDE_LIST, COLUMN_INCLUDE_LIST, COLUMN_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, COLUMN_WHITELIST, DECIMAL_HANDLING_MODE, DEFAULT_SNAPSHOT_LOCK_TIMEOUT_MILLIS, INCLUDE_SCHEMA_CHANGES, MASK_COLUMN, MASK_COLUMN_WITH_HASH, MSG_KEY_COLUMNS, PROPAGATE_COLUMN_SOURCE_TYPE, PROPAGATE_DATATYPE_SOURCE_TYPE, SCHEMA_BLACKLIST, SCHEMA_EXCLUDE_LIST, SCHEMA_EXCLUDE_LIST_NAME, SCHEMA_INCLUDE_LIST, SCHEMA_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, SCHEMA_INCLUDE_LIST_NAME, SCHEMA_WHITELIST, SERVER_NAME, SNAPSHOT_LOCK_TIMEOUT_MS, SNAPSHOT_SELECT_STATEMENT_OVERRIDES_BY_TABLE, TABLE_BLACKLIST, TABLE_BLACKLIST_NAME, TABLE_EXCLUDE_LIST, TABLE_EXCLUDE_LIST_NAME, TABLE_IGNORE_BUILTIN, TABLE_INCLUDE_LIST, TABLE_INCLUDE_LIST_ALREADY_SPECIFIED_ERROR_MSG, TABLE_INCLUDE_LIST_NAME, TABLE_WHITELIST, TABLE_WHITELIST_NAME, TIME_PRECISION_MODE, TRUNCATE_COLUMN
BINARY_HANDLING_MODE, CUSTOM_CONVERTERS, DATABASE_CONFIG_PREFIX, DEFAULT_MAX_BATCH_SIZE, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_POLL_INTERVAL_MILLIS, DEFAULT_QUERY_FETCH_SIZE, DEFAULT_RETRIABLE_RESTART_WAIT, EVENT_PROCESSING_FAILURE_HANDLING_MODE, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, POLL_INTERVAL_MS, PROVIDE_TRANSACTION_METADATA, QUERY_FETCH_SIZE, RETRIABLE_RESTART_WAIT, SANITIZE_FIELD_NAMES, SKIPPED_OPERATIONS, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SOURCE_STRUCT_MAKER_VERSION, TOMBSTONES_ON_DELETE
Modifier | Constructor and Description |
---|---|
protected |
HistorizedRelationalDatabaseConnectorConfig(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorClass,
Configuration config,
String logicalName,
Tables.TableFilter systemTablesFilter,
boolean useCatalogBeforeSchema) |
protected |
HistorizedRelationalDatabaseConnectorConfig(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorClass,
Configuration config,
String logicalName,
Tables.TableFilter systemTablesFilter,
Selectors.TableIdToStringMapper tableIdMapper,
boolean useCatalogBeforeSchema) |
Modifier and Type | Method and Description |
---|---|
DatabaseHistory |
getDatabaseHistory()
Returns a configured (but not yet started) instance of the database history.
|
protected abstract HistoryRecordComparator |
getHistoryRecordComparator()
Returns a comparator to be used when recovering records from the schema history, making sure no history entries
newer than the offset we resume from are recovered (which could happen when restarting a connector after history
records have been persisted but no new offset has been committed yet).
|
columnExcludeList, columnIncludeList, getDecimalMode, getKeyMapper, getSnapshotSelectOverridesByTable, getTableFilters, getTableIdMapper, getTemporalPrecisionMode, isSchemaChangesHistoryEnabled, schemaExcludeList, schemaIncludeList, snapshotLockTimeout, tableExcludeList, tableIncludeList
binaryHandlingMode, customConverterRegistry, getConfig, getConnectorName, getContextName, getEventProcessingFailureHandlingMode, getHeartbeatTopicsPrefix, getLogicalName, getMaxBatchSize, getMaxQueueSize, getPollInterval, getQueryFetchSize, getRetriableRestartWait, getSanitizeFieldNames, getSkippedOps, getSnapshotDelay, getSnapshotFetchSize, getSourceInfoStructMaker, getSourceInfoStructMaker, isEmitTombstoneOnDelete, shouldProvideTransactionMetadata, validateServerNameIsDifferentFromHistoryTopicName
protected static final int DEFAULT_SNAPSHOT_FETCH_SIZE
private boolean useCatalogBeforeSchema
private final String logicalName
private final Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorClass
public static final Field DATABASE_HISTORY
#configDef()
since that is designed to work with a user interface,
and in these situations using Kafka is the only way to go.protected static final ConfigDefinition CONFIG_DEFINITION
protected HistorizedRelationalDatabaseConnectorConfig(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorClass, Configuration config, String logicalName, Tables.TableFilter systemTablesFilter, boolean useCatalogBeforeSchema)
protected HistorizedRelationalDatabaseConnectorConfig(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorClass, Configuration config, String logicalName, Tables.TableFilter systemTablesFilter, Selectors.TableIdToStringMapper tableIdMapper, boolean useCatalogBeforeSchema)
public DatabaseHistory getDatabaseHistory()
protected abstract HistoryRecordComparator getHistoryRecordComparator()
Copyright © 2020 JBoss by Red Hat. All rights reserved.