Package io.debezium.relational.ddl
Class DataTypeBuilder
java.lang.Object
io.debezium.relational.ddl.DataTypeBuilder
- Author:
- Roman Kuchár <[email protected]>.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int[]
private int
private int
private long
private String
private StringBuilder
private int
private static final Pattern
private StringBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddArrayDimension
(int dimension) void
private String
This method will adjust the suffix names of numeric data type.create()
jdbcType
(int jdbcType) length
(long length) parameters
(String parameters) reset()
scale
(int scale)
-
Field Details
-
prefix
-
suffix
-
parameters
-
jdbcType
private int jdbcType -
length
private long length -
scale
private int scale -
arrayDimsLength
private int arrayDimsLength -
arrayDims
private final int[] arrayDims -
SIGNED_UNSIGNED_ZEROFILL_PATTERN
-
-
Constructor Details
-
DataTypeBuilder
public DataTypeBuilder()
-
-
Method Details
-
addToName
-
jdbcType
-
parameters
-
length
-
scale
-
addArrayDimension
-
reset
-
create
-
adjustSignedUnsignedZerofill
This method will adjust the suffix names of numeric data type. In connector streaming phase, the ddl parser maybe meet the invalid definition of suffix names with numeric data type, will adjust to appropriate values. e.g. replace "SIGNED UNSIGNED ZEROFILL" or "SIGNED ZEROFILL" to "UNSIGNED ZEROFILL", "SIGNED UNSIGNED" to "UNSIGNED" and adjust to "UNSIGNED ZEROFILL" if "zerofill" appears alone.
-