Class PgOutputRelationMetaData


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

      • relationId

        private final int relationId
      • schema

        private final String schema
      • name

        private final String name
      • primaryKeyNames

        private final List<String> primaryKeyNames
    • Constructor Detail

      • 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 Detail

      • getRelationId

        public int getRelationId()
      • getSchema

        public String getSchema()
      • getName

        public String getName()
      • getPrimaryKeyNames

        public List<String> getPrimaryKeyNames()
      • getTableId

        public TableId getTableId()