public void addUpdateToBatch(String clustername, String hostname, int partitionId, short accountId,
        ContainerStorageStats containerStats) throws SQLException {
      addUpdateToBatch(statement -> {
        statement.setString(1, clustername);
        statement.setString(2, hostname);
        statement.setInt(3, partitionId);
        statement.setInt(4, accountId);
        statement.setInt(5, containerStats.getContainerId());
        statement.setLong(6, containerStats.getLogicalStorageUsage());
        statement.setLong(7, containerStats.getPhysicalStorageUsage());
        statement.setLong(8, containerStats.getNumberOfBlobs());
        statement.setLong(9, containerStats.getLogicalStorageUsage());
        statement.setLong(10, containerStats.getPhysicalStorageUsage());
        statement.setLong(11, containerStats.getNumberOfBlobs());
      });
    }
Supply values to the prepared statement and add it to the batch updater.
@param clustername the cluster name
@param hostname the hostname
@param partitionId The partition id of this account/container usage.
@param accountId The account id.
@param containerStats The {@link ContainerStorageStats}.
@throws SQLException
ambry-mysql/src/main/java/com/github/ambry/accountstats/AccountReportsDao.java