code: func ScanTableRecord(sessCtx sessionctx.Context, retriever kv.Retriever, t table.Table, startHandle, limit int64) (
  	[]*RecordData, int64, error) {
  	return scanTableData(sessCtx, retriever, t, t.Cols(), startHandle, limit)
  }
docs: // ScanTableRecord scans table row handles and column values in a limited number.
  // It returns data and the next startHandle until it doesn't have data, then returns data is nil and
  // the next startHandle is the handle which can't get data. If startHandle = 0 and limit = -1,
  // it returns the table data of the whole.