blob: 63139348ab39ddb6e1619c8f8b4ecbe2e51148f0 (
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
|
// 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;
import com.yahoo.search.grouping.vespa.ContinuationDecoder;
/**
* <p>This class represents a piece of data stored by the grouping framework within a grouping result, which can
* subsequently be sent back along with the original request to navigate across a large result set. It is an opaque
* data object that is not intended to be human readable.</p>
*
* <p>To render a Cookie within a result set, you simply need to call {@link #toString()}.</p>
*
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
public abstract class Continuation {
public static final String NEXT_PAGE = "next";
public static final String PREV_PAGE = "prev";
public static final String THIS_PAGE = "this";
public static Continuation fromString(String str) {
return ContinuationDecoder.decode(str);
}
}
|