Class PgOutputRelationMetaData

java.lang.Object
io.debezium.connector.postgresql.connection.pgoutput.PgOutputRelationMetaData

@Immutable public class PgOutputRelationMetaData extends Object
Defines the relational information for a relation-id mapping.
Author:
Chris Cranford
  • Field Details

    • relationId

      private final int relationId
    • schema

      private final String schema
    • name

      private final String name
    • columns

      private final List<ColumnMetaData> columns
    • primaryKeyNames

      private final List<String> primaryKeyNames
  • Constructor Details

    • PgOutputRelationMetaData

      PgOutputRelationMetaData(int relationId, String schema, String name, List<ColumnMetaData> columns, List<String> primaryKeyNames)
      Construct a pgoutput relation metadata object representing a relational table.
      Parameters:
      relationId - the postgres relation identifier, unique provided by the pgoutput stream
      schema - the schema the table exists within; should never be null
      name - the name of the table; should never be null
      columns - list of column metadata instances describing the state of each column
      primaryKeyNames - ordered list of primary key column names
  • Method Details

    • getRelationId

      public int getRelationId()
    • getSchema

      public String getSchema()
    • getName

      public String getName()
    • getColumns

      public List<ColumnMetaData> getColumns()
    • getPrimaryKeyNames

      public List<String> getPrimaryKeyNames()
    • getTableId

      public TableId getTableId()