public void copyUpdatedMetadata(UpdatedMetaDataTracker other) {
    int size = updateMetaDataList.size();
    for (UpdateMetaData updateMetaDataOther : other.updateMetaDataList) {
      String key = getKey(normalizeIdentifier(updateMetaDataOther.getDbName()),
              normalizeIdentifier(updateMetaDataOther.getTableName()));
      Integer idx = updateMetaDataMap.get(key);
      if (idx == null) {
        updateMetaDataList.add(updateMetaDataOther);
        updateMetaDataMap.put(key, size++);
      } else if (updateMetaDataOther.partitionsList != null && updateMetaDataOther.partitionsList.size() != 0) {
        UpdateMetaData updateMetaData = updateMetaDataList.get(idx);
        for (Map<String, String> partSpec : updateMetaDataOther.partitionsList) {
          updateMetaData.addPartition(partSpec);
        }
      }
    }
    this.needCommitTxn = other.needCommitTxn;
  }
Utility class to store replication state of a table.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/UpdatedMetaDataTracker.java