Interface BinlogValueConvertersFactory<T extends io.debezium.connector.binlog.jdbc.BinlogValueConverters>
public interface BinlogValueConvertersFactory<T extends io.debezium.connector.binlog.jdbc.BinlogValueConverters>
A helper factory for creating binlog value converter implementations for testing.
- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Configuration configuration, TemporalAdjuster temporalAdjuster) Creates an implementation ofBinlogValueConvertersbased on a given configuration.default Tcreate(RelationalDatabaseConnectorConfig.DecimalHandlingMode decimalHandlingMode, TemporalPrecisionMode temporalPrecisionMode, io.debezium.connector.binlog.BinlogConnectorConfig.BigIntUnsignedHandlingMode bigIntUnsignedHandlingMode, CommonConnectorConfig.BinaryHandlingMode binaryHandlingMode, CommonConnectorConfig.EventConvertingFailureHandlingMode eventConvertingFailureHandlingMode) Creates an implementation ofBinlogValueConvertersfor the given connector.default Tcreate(RelationalDatabaseConnectorConfig.DecimalHandlingMode decimalHandlingMode, TemporalPrecisionMode temporalPrecisionMode, io.debezium.connector.binlog.BinlogConnectorConfig.BigIntUnsignedHandlingMode bigIntUnsignedHandlingMode, CommonConnectorConfig.BinaryHandlingMode binaryHandlingMode, TemporalAdjuster temporalAdjuster, CommonConnectorConfig.EventConvertingFailureHandlingMode eventConvertingFailureHandlingMode) Creates an implementation ofBinlogValueConvertersfor the given connector.
-
Method Details
-
create
Creates an implementation ofBinlogValueConvertersbased on a given configuration.- Parameters:
configuration- the connector configuraiton, should never benull.temporalAdjuster- the temporal adjuster, should never benull.- Returns:
- the constructed value converter instance, never
null
-
create
default T create(RelationalDatabaseConnectorConfig.DecimalHandlingMode decimalHandlingMode, TemporalPrecisionMode temporalPrecisionMode, io.debezium.connector.binlog.BinlogConnectorConfig.BigIntUnsignedHandlingMode bigIntUnsignedHandlingMode, CommonConnectorConfig.BinaryHandlingMode binaryHandlingMode, TemporalAdjuster temporalAdjuster, CommonConnectorConfig.EventConvertingFailureHandlingMode eventConvertingFailureHandlingMode) Creates an implementation ofBinlogValueConvertersfor the given connector.- Parameters:
decimalHandlingMode- the decimal handling modetemporalPrecisionMode- the temporal precision modebigIntUnsignedHandlingMode- the unsigned big integer handling modebinaryHandlingMode- the binary handling modetemporalAdjuster- the time adjuster implementationeventConvertingFailureHandlingMode- the event converting failure handling mode- Returns:
- the constructed value converter instance, never
null
-
create
default T create(RelationalDatabaseConnectorConfig.DecimalHandlingMode decimalHandlingMode, TemporalPrecisionMode temporalPrecisionMode, io.debezium.connector.binlog.BinlogConnectorConfig.BigIntUnsignedHandlingMode bigIntUnsignedHandlingMode, CommonConnectorConfig.BinaryHandlingMode binaryHandlingMode, CommonConnectorConfig.EventConvertingFailureHandlingMode eventConvertingFailureHandlingMode) Creates an implementation ofBinlogValueConvertersfor the given connector.- Parameters:
decimalHandlingMode- the decimal handling modetemporalPrecisionMode- the temporal precision modebigIntUnsignedHandlingMode- the unsigned big integer handling modebinaryHandlingMode- the binary handling modeeventConvertingFailureHandlingMode- the event converting failure handling mode- Returns:
- the constructed value converter instance, never
null
-