public void set(String replState, String dbName, String tableName, Map <String, String> partSpec)
          throws SemanticException {
    if (dbName == null) {
      throw new SemanticException("db name can not be null");
    }
    if (dbName.contains(".") || ((tableName != null)  && tableName.contains("."))) {
      throw new SemanticException("Invalid DB or table name." + dbName + "::"
              + ((tableName != null) ? tableName : ""));
    }
    String key = getKey(normalizeIdentifier(dbName), normalizeIdentifier(tableName));
    Integer idx = updateMetaDataMap.get(key);
    if (idx == null) {
      updateMetaDataList.add(new UpdateMetaData(replState, dbName, tableName, partSpec));
      updateMetaDataMap.put(key, updateMetaDataList.size() - 1);
    } else {
      updateMetaDataList.get(idx).addPartition(partSpec);
    }
  }
Utility class to store replication state of a table.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/UpdatedMetaDataTracker.java