Package io.debezium.converters
Class RecordParser.PostgresRecordParser
- java.lang.Object
-
- io.debezium.converters.RecordParser
-
- io.debezium.converters.RecordParser.PostgresRecordParser
-
- Enclosing class:
- RecordParser
public static final class RecordParser.PostgresRecordParser extends RecordParser
Parser for records produced by PostgreSQL connectors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.converters.RecordParser
RecordParser.MongodbRecordParser, RecordParser.MysqlRecordParser, RecordParser.PostgresRecordParser, RecordParser.SqlserverRecordParser
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static String
LSN_KEY
(package private) static Set<String>
POSTGRES_SOURCE_FIELD
(package private) static String
TXID_KEY
(package private) static String
XMIN_KEY
-
Fields inherited from class io.debezium.converters.RecordParser
SOURCE_FIELDS
-
-
Constructor Summary
Constructors Constructor Description PostgresRecordParser(org.apache.kafka.connect.data.Schema schema, org.apache.kafka.connect.data.Struct record)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getMetadata(String name)
Search for metadata of the record by name, which are defined in the source field; throw a DataException if not found.-
Methods inherited from class io.debezium.converters.RecordParser
connectorType, create, data, dataSchema, op, opSchema, source, transaction, ts_ms, ts_msSchema
-
-
-
-
Field Detail
-
TXID_KEY
static final String TXID_KEY
- See Also:
- Constant Field Values
-
XMIN_KEY
static final String XMIN_KEY
- See Also:
- Constant Field Values
-
LSN_KEY
static final String LSN_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetadata
public Object getMetadata(String name)
Description copied from class:RecordParser
Search for metadata of the record by name, which are defined in the source field; throw a DataException if not found.- Specified by:
getMetadata
in classRecordParser
- Returns:
- metadata of the record
-
-