}
public static GroupByIdBlock createGroupByIdBlock(int groupId, int positions)
{
if (positions == 0) {
return new GroupByIdBlock(groupId, new UncompressedBlock(0, TupleInfo.SINGLE_LONG, Slices.EMPTY_SLICE));
}
BlockBuilder blockBuilder = new BlockBuilder(TupleInfo.SINGLE_LONG);
for (int i = 0; i < positions; i++) {
blockBuilder.append(groupId);
}
return new GroupByIdBlock(groupId, blockBuilder.build());
}