Class ColumnMetaData
java.lang.Object
io.debezium.connector.postgresql.connection.pgoutput.ColumnMetaData
Defines the relational column mapping for a table.
- Author:
- Gunnar Morling, Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final booleanprivate final booleanprivate final intprivate final booleanprivate final PostgresTypeprivate final intprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(String columnName, PostgresType postgresType, boolean key, boolean optional, boolean hasDefaultValue, String defaultValueExpression, int typeModifier) Create a metadata structure representing a column. -
Method Summary
-
Field Details
-
columnName
-
postgresType
-
key
private final boolean key -
optional
private final boolean optional -
hasDefaultValue
private final boolean hasDefaultValue -
defaultValueExpression
-
length
private final int length -
scale
private final int scale -
typeName
-
-
Constructor Details
-
ColumnMetaData
ColumnMetaData(String columnName, PostgresType postgresType, boolean key, boolean optional, boolean hasDefaultValue, String defaultValueExpression, int typeModifier) Create a metadata structure representing a column.- Parameters:
columnName- name of the column; must not be nullpostgresType- postgres database type; must not be nullkey-trueif column is part of the primary key,falseotherwiseoptional-trueif the column is considered optional,falseotherwisehasDefaultValue-trueif the column has a default value specified,falseotherwisedefaultValueExpression- the parsed default value literal for the columntypeModifier- the attribute type modifier
-
-
Method Details
-
getColumnName
-
getPostgresType
-
isKey
public boolean isKey() -
isOptional
public boolean isOptional() -
hasDefaultValue
public boolean hasDefaultValue() -
getDefaultValueExpression
-
getLength
public int getLength() -
getScale
public int getScale() -
getTypeName
-