Class PgProtoColumnValue
- java.lang.Object
-
- io.debezium.connector.postgresql.connection.AbstractColumnValue<PgProto.DatumMessage>
-
- io.debezium.connector.postgresql.connection.pgproto.PgProtoColumnValue
-
- All Implemented Interfaces:
ReplicationMessage.ColumnValue<PgProto.DatumMessage>
public class PgProtoColumnValue extends AbstractColumnValue<PgProto.DatumMessage>
Replication message column sent by Postgres Decoderbufs>- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGERprivate static longTIMESTAMP_MAXA number used by PostgreSQL to define maximum timestamp (exclusive).private static longTIMESTAMP_MINA number used by PostgreSQL to define minimum timestamp (inclusive).private PgProto.DatumMessagevalue
-
Constructor Summary
Constructors Constructor Description PgProtoColumnValue(PgProto.DatumMessage value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectasArray(String columnName, PostgresType type, String fullType, PostgresStreamingChangeEventSource.PgConnectionSupplier connection)BooleanasBoolean()byte[]asByteArray()ObjectasDecimal()ObjectasDefault(TypeRegistry typeRegistry, int columnType, String columnName, String fullType, boolean includeUnknownDatatypes, PostgresStreamingChangeEventSource.PgConnectionSupplier connection)DoubleasDouble()FloatasFloat()InstantasInstant()IntegerasInteger()ObjectasInterval()LocalDateasLocalDate()ObjectasLocalTime()LongasLong()org.postgresql.util.PGmoneyasMoney()OffsetDateTimeasOffsetDateTimeAtUtc()OffsetTimeasOffsetTimeUtc()org.postgresql.geometric.PGpointasPoint()StringasString()ObjectasTime()PgProto.DatumMessagegetRawValue()booleanisArray(PostgresType type)booleanisNull()
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
TIMESTAMP_MIN
private static final long TIMESTAMP_MIN
A number used by PostgreSQL to define minimum timestamp (inclusive). Defined in timestamp.h- See Also:
- Constant Field Values
-
TIMESTAMP_MAX
private static final long TIMESTAMP_MAX
A number used by PostgreSQL to define maximum timestamp (exclusive). Defined in timestamp.h- See Also:
- Constant Field Values
-
value
private PgProto.DatumMessage value
-
-
Constructor Detail
-
PgProtoColumnValue
public PgProtoColumnValue(PgProto.DatumMessage value)
-
-
Method Detail
-
getRawValue
public PgProto.DatumMessage getRawValue()
-
isNull
public boolean isNull()
-
asString
public String asString()
-
asBoolean
public Boolean asBoolean()
-
asInteger
public Integer asInteger()
-
asLong
public Long asLong()
-
asFloat
public Float asFloat()
-
asDouble
public Double asDouble()
-
asDecimal
public Object asDecimal()
-
asByteArray
public byte[] asByteArray()
-
asLocalDate
public LocalDate asLocalDate()
- Specified by:
asLocalDatein interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asLocalDatein classAbstractColumnValue<PgProto.DatumMessage>
-
asTime
public Object asTime()
- Specified by:
asTimein interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asTimein classAbstractColumnValue<PgProto.DatumMessage>
-
asOffsetTimeUtc
public OffsetTime asOffsetTimeUtc()
- Specified by:
asOffsetTimeUtcin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asOffsetTimeUtcin classAbstractColumnValue<PgProto.DatumMessage>
-
asOffsetDateTimeAtUtc
public OffsetDateTime asOffsetDateTimeAtUtc()
- Specified by:
asOffsetDateTimeAtUtcin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asOffsetDateTimeAtUtcin classAbstractColumnValue<PgProto.DatumMessage>
-
asInstant
public Instant asInstant()
- Specified by:
asInstantin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asInstantin classAbstractColumnValue<PgProto.DatumMessage>
-
asLocalTime
public Object asLocalTime()
- Specified by:
asLocalTimein interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asLocalTimein classAbstractColumnValue<PgProto.DatumMessage>
-
asInterval
public Object asInterval()
- Specified by:
asIntervalin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asIntervalin classAbstractColumnValue<PgProto.DatumMessage>
-
asMoney
public org.postgresql.util.PGmoney asMoney()
- Specified by:
asMoneyin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asMoneyin classAbstractColumnValue<PgProto.DatumMessage>
-
asPoint
public org.postgresql.geometric.PGpoint asPoint()
- Specified by:
asPointin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asPointin classAbstractColumnValue<PgProto.DatumMessage>
-
isArray
public boolean isArray(PostgresType type)
- Specified by:
isArrayin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
isArrayin classAbstractColumnValue<PgProto.DatumMessage>
-
asArray
public Object asArray(String columnName, PostgresType type, String fullType, PostgresStreamingChangeEventSource.PgConnectionSupplier connection)
- Specified by:
asArrayin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asArrayin classAbstractColumnValue<PgProto.DatumMessage>
-
asDefault
public Object asDefault(TypeRegistry typeRegistry, int columnType, String columnName, String fullType, boolean includeUnknownDatatypes, PostgresStreamingChangeEventSource.PgConnectionSupplier connection)
- Specified by:
asDefaultin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asDefaultin classAbstractColumnValue<PgProto.DatumMessage>
-
-