String s = null;
do {
s = reader.readLine();
if(s != null) {
StringTokenizer sb = new StringTokenizer(s, "\t", false);
CubeQueryResultRow row = new CubeQueryResultRow();
for(int i = 0; i < scan.getGroupBy().length; i ++)
row.getGroupBy().add(Long.parseLong(sb.nextToken()));
for(int i = 0; i < scan.getCubeScanAggregates().size(); i ++)
row.getValues().add(Double.parseDouble(sb.nextToken()));
cubeQueryResult.getRows().add(row);
}
} while(s != null);
reader.close();
fsin.close();