function getSampleRows(tableSchema, rowCount, nullNameRowCount) {
  var rows = [];

  var rowCountFirstHalf = Math.floor(rowCount / 2);
  for (var i = 0; i < rowCountFirstHalf; i++) {
    var row = tableSchema.createRow({
      'id': 1000 + i,
      'name': 'name' + i
    });
    row.assignRowId(i + 2);
    rows.push(row);
  }

  // Generating a few rows with non-unique values for the "name" field. This
  // allows tests in this file to trigger the case where an index corresponding
  // to a non-unique field is initialized.
  for (var i = rowCountFirstHalf; i < rowCount; i++) {
    var row = tableSchema.createRow({
      'id': 1000 + i,
      'name': 'nonUniqueName'
    });
    row.assignRowId(i + 2);
    rows.push(row);
  }

  for (var i = rowCount; i < rowCount + nullNameRowCount; i++) {
    var row = tableSchema.createRow({
      'id': 1000 + i,
      'name': null
    });
    row.assignRowId(i + 2);
    rows.push(row);
  }

  return rows;
}
@param {!lf.schema.Table} tableSchema
@param {number} rowCount The number of sample rows to generate with all
    fields populated.
@param {number} nullNameRowCount The number of sample rows to with a null
    'name' field to generate.
@return {!Array<!lf.Row>}