for (int i = 0; i < tupleInfos.size(); i++) {
types.add(tupleInfos.get(i).getType());
distinctChannels.add(i);
}
this.groupByHash = new GroupByHash(types.build(), Ints.toArray(distinctChannels.build()), 10_000, new HashMemoryManager(operatorContext));
this.cursors = new BlockCursor[tupleInfos.size()];
this.pageBuilder = new PageBuilder(getTupleInfos());
remainingLimit = limit;
}