Class AbstractReplicationMessageColumn.TypeMetadataImpl
java.lang.Object
io.debezium.connector.postgresql.connection.AbstractReplicationMessageColumn.TypeMetadataImpl
- All Implemented Interfaces:
ReplicationMessage.ColumnTypeMetadata
- Enclosing class:
AbstractReplicationMessageColumn
public static class AbstractReplicationMessageColumn.TypeMetadataImpl
extends Object
implements ReplicationMessage.ColumnTypeMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IntegerLength of the type, if presentprivate static final org.slf4j.Loggerprivate static final String[]private final booleanTrue if the type has notNOT NULLconstraintprivate IntegerScale of the type, if presentstatic final Patternprivate static final Pattern -
Constructor Summary
ConstructorsConstructorDescriptionTypeMetadataImpl(String columnName, PostgresType type, String typeWithModifiers, boolean optional) -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NO_MODIFIERS
-
TYPE_PATTERN
-
TYPEMOD_PATTERN
-
length
Length of the type, if present -
scale
Scale of the type, if present -
optional
private final boolean optionalTrue if the type has notNOT NULLconstraint
-
-
Constructor Details
-
TypeMetadataImpl
public TypeMetadataImpl(String columnName, PostgresType type, String typeWithModifiers, boolean optional)
-
-
Method Details
-
getLength
public int getLength()- Specified by:
getLengthin interfaceReplicationMessage.ColumnTypeMetadata
-
getScale
public int getScale()- Specified by:
getScalein interfaceReplicationMessage.ColumnTypeMetadata
-
isOptional
public boolean isOptional()
-