Class GeometryType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractGeoType
io.debezium.connector.jdbc.dialect.postgres.GeometryType
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
GeographyType,PointType
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Stringstatic final Type(package private) Stringprivate static final StringFields inherited from class io.debezium.connector.jdbc.type.AbstractGeoType
SRID, WKB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(JdbcSinkConnectorConfig config, DatabaseDialect dialect) Allows a type to perform initialization/configuration tasks based on user configs.getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema, Object value) Return the SQL string to be used in DML statements for binding this type to SQL.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.Methods inherited from class io.debezium.connector.jdbc.type.AbstractGeoType
bindMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
getDefaultValueBinding, getDialect, getSchemaParameter, getSourceColumnPrecision, getSourceColumnSize, getSourceColumnType, throwUnexpectedValue, toString
-
Field Details
-
INSTANCE
-
GEO_FROM_WKB_FUNCTION
- See Also:
-
TYPE_NAME
- See Also:
-
postgisSchema
String postgisSchema
-
-
Constructor Details
-
GeometryType
public GeometryType()
-
-
Method Details
-
configure
Description copied from interface:TypeAllows a type to perform initialization/configuration tasks based on user configs.- Specified by:
configurein interfaceType- Overrides:
configurein classAbstractType- Parameters:
config- the JDBC sink connector's configuration, should not benulldialect- the database dialect, should not benull
-
getQueryBinding
public String getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema, Object value) 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:
column- column descriptor in the table relational model, nevernullschema- field schema, nevernullvalue- value to be bound, may benull- Returns:
- query parameter argument binding SQL fragment
-
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
-