Class BytesType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractBytesType
io.debezium.connector.jdbc.dialect.oracle.BytesType
- All Implemented Interfaces:
Type
An implementation of
Type for BYTES column types.- Author:
- Chris Cranford
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultValueBinding(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, Object value) Resolve the default value clause value.getTypeName(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key) Return the SQL type name for this type.Methods inherited from class io.debezium.connector.jdbc.type.AbstractBytesType
bind, getRegistrationKeysMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
configure, getDialect, getQueryBinding, getSchemaParameter, getSourceColumnPrecision, getSourceColumnSize, getSourceColumnType, throwUnexpectedValue, toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BytesType
BytesType()
-
-
Method Details
-
getTypeName
public String getTypeName(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key) Description copied from interface:TypeReturn the SQL type name for this type.- Parameters:
dialect- dialect instance, nevernullschema- field schema, nevernullkey- whether the type resolution is for a key field- Returns:
- the resolved type to be used in DDL statements
-
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
-