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