blob: ef4d93ac012d50a6ef7629211a3618bfd7492b95 (
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 Vespa.ai. 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;
}
}
|