Class ConnectStringType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.connect.AbstractConnectSchemaType
io.debezium.connector.jdbc.type.connect.ConnectStringType
- All Implemented Interfaces:
Type
An implementation of
Type that supports STRING connect schema types.- Author:
- Chris Cranford
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intgetColumnSize(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key, int jdbcType) private intgetColumnSqlType(org.apache.kafka.connect.data.Schema schema) private intgetMaxSizeInKey(DatabaseDialect dialect, int jdbcType) String[]Returns the names that this type will be mapped as.getTypeName(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key) Return the SQL type name for this type.private booleanhasNationalizedCharacterSet(org.apache.kafka.connect.data.Schema schema) private static booleanMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
bind, configure, getDefaultValueBinding, getDialect, getQueryBinding, getSchemaParameter, getSourceColumnPrecision, getSourceColumnSize, getSourceColumnType, throwUnexpectedValue, toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ConnectStringType
public ConnectStringType()
-
-
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. -
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
-
getColumnSize
private int getColumnSize(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key, int jdbcType) -
getMaxSizeInKey
-
getColumnSqlType
private int getColumnSqlType(org.apache.kafka.connect.data.Schema schema) -
isType
-
hasNationalizedCharacterSet
private boolean hasNationalizedCharacterSet(org.apache.kafka.connect.data.Schema schema)
-