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
Fields Modifier and Type Field Description private IntegerlengthLength of the type, if presentprivate static org.slf4j.LoggerLOGGERprivate static String[]NO_MODIFIERSprivate booleanoptionalTrue if the type has notNOT NULLconstraintprivate IntegerscaleScale of the type, if presentstatic PatternTYPE_PATTERNprivate static PatternTYPEMOD_PATTERN
-
Constructor Summary
Constructors Constructor Description TypeMetadataImpl(String columnName, PostgresType type, String typeWithModifiers, boolean optional)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
NO_MODIFIERS
private static final String[] NO_MODIFIERS
-
TYPE_PATTERN
public static final Pattern TYPE_PATTERN
-
TYPEMOD_PATTERN
private static final Pattern TYPEMOD_PATTERN
-
length
private Integer length
Length of the type, if present
-
scale
private Integer scale
Scale of the type, if present
-
optional
private final boolean optional
True if the type has notNOT NULLconstraint
-
-
Constructor Detail
-
TypeMetadataImpl
public TypeMetadataImpl(String columnName, PostgresType type, String typeWithModifiers, boolean optional)
-
-
Method Detail
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceReplicationMessage.ColumnTypeMetadata
-
getScale
public int getScale()
- Specified by:
getScalein interfaceReplicationMessage.ColumnTypeMetadata
-
isOptional
public boolean isOptional()
-
-