Made StmtTableScan an abstract and introduced two concrete classes StmtTragetTableScan and StmtSubqueryScan to represent a real and subquery tables. I put them into a new package org.voltdb.planner.parseinfo