blob: 238f9ec68f3cdb4f5c5d4fb34b472a8411c7aaf8 (
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 2016 Yahoo Inc. 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 <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
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;
}
}
|