class GroupedTopNBuilder {

    public Iterator<Page> buildResult()
    {
        return new ResultIterator();
    }

    public  GroupedTopNBuilder(
            List<Type> sourceTypes,
            PageWithPositionComparator comparator,
            int topN,
            boolean produceRowNumber,
            GroupByHash groupByHash);

}