Package io.debezium.relational.ddl
Class DataTypeBuilder
java.lang.Object
io.debezium.relational.ddl.DataTypeBuilder
- Author:
- Roman Kuchár <kucharrom@gmail.com>.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private intprivate intprivate longprivate Stringprivate StringBuilderprivate intprivate static final Patternprivate StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArrayDimension(int dimension) voidprivate StringThis 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.
-