aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/grouping/result/RootGroup.java
blob: 1a4751936050840760e255adc68af377618112a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping.result;

import com.yahoo.search.grouping.Continuation;
import com.yahoo.search.result.Relevance;

/**
 * This class represents the root {@link Group} in the grouping result model. This class adds a {@link Continuation}
 * object that can be used to paginate the result.
 *
 * @author Simon Thoresen Hult
 */
public class RootGroup extends Group {

    private final Continuation continuation;

    public RootGroup(int id, Continuation continuation) {
        super(new RootId(id), new Relevance(1.0));
        this.continuation = continuation;
    }

    public Continuation continuation() {
        return continuation;
    }
}