271272273274275276277278279280281
if (query.reader instanceof IntegerSQLReader) toReturn = (U)Integer.valueOf(0); else if (query.reader instanceof DoubleSQLReader) toReturn = (U)Double.valueOf(0); else if (query.reader instanceof PairSQLReader) toReturn = (U) new Pair(null, null); } } catch (QueryGenerationException e) { e.printStackTrace(); }
180181182183184185186187188189190
U createTuple(Object[]data) { switch(subreaders.length) { case 2: return (U)new Pair(data[0], data[1]); case 3: return (U)new Tuple3(data[0], data[1], data[2]); case 4: return (U)new Tuple4(data[0], data[1], data[2], data[3]); case 5: