Class MapToJsonType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.connect.AbstractConnectSchemaType
io.debezium.connector.jdbc.type.connect.AbstractConnectMapType
io.debezium.connector.jdbc.dialect.mysql.MapToJsonType
- All Implemented Interfaces:
Type
- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MapToJsonTypeprivate static final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(org.hibernate.query.Query<?> query, int index, org.apache.kafka.connect.data.Schema schema, Object value) Binds the value to the query.getQueryBinding(org.apache.kafka.connect.data.Schema schema) Return the SQL string to be used in DML statements for binding this type to SQL.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.connect.AbstractConnectMapType
getDefaultValueBinding, getRegistrationKeys, mapToJsonStringMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
getSchemaParameter, getSourceColumnPrecision, getSourceColumnSize, getSourceColumnType, throwUnexpectedValue, toString
-
Field Details
-
OBJECT_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER -
INSTANCE
-
-
Constructor Details
-
MapToJsonType
MapToJsonType()
-
-
Method Details
-
getQueryBinding
Description copied from interface:TypeReturn the SQL string to be used in DML statements for binding this type to SQL.- Specified by:
getQueryBindingin interfaceType- Overrides:
getQueryBindingin classAbstractType- Parameters:
schema- field schema, nevernull- Returns:
- query parameter argument binding SQL fragment
-
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
-
bind
public void bind(org.hibernate.query.Query<?> query, 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:
query- hibernate query, is nevernullindex- parameter index to bindschema- field schema, nevernullvalue- value to be bound, may benull
-