/** * Collects ALL the tuples to an in-memory list * also add all tuples into the excel file by calling this.getNextTuple * * @return a list of tuples * @throws TexeraException */ public List<Tuple> collectAllTuples() throws TexeraException { ArrayList<Tuple> results = new ArrayList<>(); Tuple tuple; while ((tuple = this.getNextTuple()) != null) { results.add(tuple); } return results; }