@Override
      public void execute(String batchQueryText, int batchRowCount) throws MetaException {
        Object[] params = new Object[batchRowCount * columnCount];
        int paramIndex = 0;
        for (int index = 0; index < batchRowCount; index++) {
          Map.Entry<Long, String> entry = it.next();
          params[paramIndex++] = stringListIdToSdId.get(entry.getKey());
          params[paramIndex++] = entry.getKey();
          params[paramIndex++] = entry.getValue();
        }
        executeQuery(batchQueryText, params);
      }
Interface to execute multiple row insert query in batch for direct SQL
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlInsertPart.java