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>
Replication message column sent by Postgres Decoderbufs</>
- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final longA number used by PostgreSQL to define maximum timestamp (exclusive).private static final longA number used by PostgreSQL to define minimum timestamp (inclusive).private PgProto.DatumMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasArray(String columnName, PostgresType type, String fullType, PostgresStreamingChangeEventSource.PgConnectionSupplier connection) byte[]asDefault(TypeRegistry typeRegistry, int columnType, String columnName, String fullType, boolean includeUnknownDatatypes, PostgresStreamingChangeEventSource.PgConnectionSupplier connection) asDouble()asFloat()asLong()asMoney()org.postgresql.geometric.PGpointasPoint()asString()asTime()booleanisArray(PostgresType type) booleanisNull()Methods inherited from class io.debezium.connector.postgresql.connection.AbstractColumnValue
asBox, asCircle, asLine, asLseg, asPath, asPolygon, removeCurrencySymbol
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TIMESTAMP_MIN
private static final long TIMESTAMP_MINA number used by PostgreSQL to define minimum timestamp (inclusive). Defined in timestamp.h- See Also:
-
TIMESTAMP_MAX
private static final long TIMESTAMP_MAXA number used by PostgreSQL to define maximum timestamp (exclusive). Defined in timestamp.h- See Also:
-
value
-
-
Constructor Details
-
PgProtoColumnValue
-
-
Method Details
-
getRawValue
-
isNull
public boolean isNull() -
asString
-
asBoolean
-
asInteger
-
asLong
-
asFloat
-
asDouble
-
asDecimal
-
asByteArray
public byte[] asByteArray() -
asLocalDate
- Specified by:
asLocalDatein interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asLocalDatein classAbstractColumnValue<PgProto.DatumMessage>
-
asTime
- Specified by:
asTimein interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asTimein classAbstractColumnValue<PgProto.DatumMessage>
-
asOffsetTimeUtc
- Specified by:
asOffsetTimeUtcin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asOffsetTimeUtcin classAbstractColumnValue<PgProto.DatumMessage>
-
asOffsetDateTimeAtUtc
- Specified by:
asOffsetDateTimeAtUtcin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asOffsetDateTimeAtUtcin classAbstractColumnValue<PgProto.DatumMessage>
-
asInstant
- Specified by:
asInstantin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asInstantin classAbstractColumnValue<PgProto.DatumMessage>
-
asLocalTime
- Specified by:
asLocalTimein interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asLocalTimein classAbstractColumnValue<PgProto.DatumMessage>
-
asInterval
- Specified by:
asIntervalin interfaceReplicationMessage.ColumnValue<PgProto.DatumMessage>- Overrides:
asIntervalin classAbstractColumnValue<PgProto.DatumMessage>
-
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
- 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>
-