@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, MSerDeInfo> entry = it.next();
          MSerDeInfo serdeInfo = entry.getValue();
          params[paramIndex++] = entry.getKey();
          params[paramIndex++] = serdeInfo.getDescription();
          params[paramIndex++] = serdeInfo.getDeserializerClass();
          params[paramIndex++] = serdeInfo.getName();
          params[paramIndex++] = serdeInfo.getSerdeType();
          params[paramIndex++] = serdeInfo.getSerializationLib();
          params[paramIndex++] = serdeInfo.getSerializerClass();
        }
        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