public class Db2ValueConverters
extends io.debezium.jdbc.JdbcValueConverters
| Constructor and Description |
|---|
Db2ValueConverters() |
Db2ValueConverters(io.debezium.jdbc.JdbcValueConverters.DecimalMode decimalMode,
io.debezium.jdbc.TemporalPrecisionMode temporalPrecisionMode)
Create a new instance that always uses UTC for the default time zone when
converting values without timezone information to values that require
timezones.
|
| Modifier and Type | Method and Description |
|---|---|
io.debezium.relational.ValueConverter |
converter(io.debezium.relational.Column column,
org.apache.kafka.connect.data.Field fieldDefn) |
protected Object |
convertTimestampWithZone(io.debezium.relational.Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data) |
protected int |
getTimePrecision(io.debezium.relational.Column column)
Time precision in DB2 is defined in scale, the default one is 7
|
org.apache.kafka.connect.data.SchemaBuilder |
schemaBuilder(io.debezium.relational.Column column) |
byteOrderOfBitType, convertBigInt, convertBinary, convertBinaryToBase64, convertBinaryToBytes, convertBinaryToHex, convertBit, convertBits, convertBits, convertBoolean, convertDateToEpochDays, convertDateToEpochDaysAsDate, convertDecimal, convertDouble, convertFloat, convertInteger, convertNumeric, convertReal, convertRowId, convertSmallInt, convertString, convertTime, convertTimestampToEpochMicros, convertTimestampToEpochMillis, convertTimestampToEpochMillisAsDate, convertTimestampToEpochNanos, convertTimeToMicrosPastMidnight, convertTimeToMillisPastMidnight, convertTimeToMillisPastMidnightAsDate, convertTimeToNanosPastMidnight, convertTimeWithZone, convertTinyInt, convertValue, handleUnknownData, padLittleEndian, toBigDecimal, toByteBuffer, unexpectedBinary, withScaleAdjustedIfNeededpublic Db2ValueConverters()
public Db2ValueConverters(io.debezium.jdbc.JdbcValueConverters.DecimalMode decimalMode,
io.debezium.jdbc.TemporalPrecisionMode temporalPrecisionMode)
decimalMode - how DECIMAL and NUMERIC values should be
treated; may be null if
JdbcValueConverters.DecimalMode.PRECISE
is to be usedtemporalPrecisionMode - date/time value will be represented either as Connect datatypes or Debezium specific datatypespublic org.apache.kafka.connect.data.SchemaBuilder schemaBuilder(io.debezium.relational.Column column)
schemaBuilder in interface io.debezium.relational.ValueConverterProviderschemaBuilder in class io.debezium.jdbc.JdbcValueConverterspublic io.debezium.relational.ValueConverter converter(io.debezium.relational.Column column,
org.apache.kafka.connect.data.Field fieldDefn)
converter in interface io.debezium.relational.ValueConverterProviderconverter in class io.debezium.jdbc.JdbcValueConvertersprotected int getTimePrecision(io.debezium.relational.Column column)
getTimePrecision in class io.debezium.jdbc.JdbcValueConvertersCopyright © 2021 JBoss by Red Hat. All rights reserved.