Any civil or criminal case in such court may be tried by the judge thereof without a jury at the discretion of the judge and upon consent of the parties thereto.