TopNProjection topNProjection = new TopNProjection(
10, 0, Arrays.<Symbol>asList(new InputColumn(1)), new boolean[] { false }, new Boolean[] { null });
topNProjection.outputs(Arrays.<Symbol>asList(new InputColumn(0), new InputColumn(1)));
mergeNode.projections(Arrays.asList(groupProjection, topNProjection));
mergeNode.outputTypes(Arrays.<DataType>asList(DataTypes.STRING, DataTypes.LONG));
Streamer<?>[] mapperOutputStreamer = new Streamer[] {
new AggregationStateStreamer(countAggregation),
DataTypes.STRING.streamer()
};