ugly generator code for the TableRDD class and the accompanying methods in SharkContext