Class DebeziumZonedTimestampType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractTemporalType
io.debezium.connector.jdbc.type.AbstractTimestampType
io.debezium.connector.jdbc.type.debezium.DebeziumZonedTimestampType
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
ZonedTimestampType,ZonedTimestampType,ZonedTimestampType,ZonedTimestampType
An implementation of
Type for ZonedTimestamp values.- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DebeziumZonedTimestampTypestatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBinds the value to the query.getDefaultValueBinding(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, Object value) Resolve the default value clause value.protected intprotected intString[]Returns the names that this type will be mapped as.protected List<ValueBindDescriptor> infinityTimestampValue(int index, Object value) protected List<ValueBindDescriptor> normalTimestampValue(int index, Object value) Methods inherited from class io.debezium.connector.jdbc.type.AbstractTimestampType
getTimePrecision, getTypeNameMethods inherited from class io.debezium.connector.jdbc.type.AbstractTemporalType
configure, getDatabaseTimeZoneMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
getDialect, getQueryBinding, getSchemaParameter, getSourceColumnPrecision, getSourceColumnSize, getSourceColumnType, throwUnexpectedValue, toString
-
Field Details
-
INSTANCE
-
POSITIVE_INFINITY
- See Also:
-
NEGATIVE_INFINITY
- See Also:
-
-
Constructor Details
-
DebeziumZonedTimestampType
public DebeziumZonedTimestampType()
-
-
Method Details
-
getRegistrationKeys
Description copied from interface:TypeReturns the names that this type will be mapped as.For example, when creating a custom mapping for
io.debezium.data.Bits, a type could be registered using theLOGICAL_NAMEof the schema if the type is to be used when a schema name is identified; otherwise it could be registered as the raw column type when column type propagation is enabled. -
getDefaultValueBinding
public String getDefaultValueBinding(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, Object value) Description copied from interface:TypeResolve the default value clause value.- Specified by:
getDefaultValueBindingin interfaceType- Overrides:
getDefaultValueBindingin classAbstractType- Parameters:
dialect- dialect instance, nevernullschema- field schema, nevernullvalue- the default value, should not benull- Returns:
- the formatted default value for the SQL statement as a string
-
bind
public List<ValueBindDescriptor> bind(int index, org.apache.kafka.connect.data.Schema schema, Object value) Description copied from interface:TypeBinds the value to the query.- Specified by:
bindin interfaceType- Overrides:
bindin classAbstractType- Parameters:
index- parameter index to bindschema- field schema, nevernullvalue- value to be bound, may benull- Returns:
- the list of
ValueBindDescriptor
-
infinityTimestampValue
-
normalTimestampValue
-
getJdbcBindType
protected int getJdbcBindType() -
getJdbcType
protected int getJdbcType()- Overrides:
getJdbcTypein classAbstractTimestampType
-