blob: d7ee3fedfc9d11cafe326897178d447d71455fff (
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
26
27
28
|
// Copyright 2017 Yahoo Holdings. 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 Simon Thoresen Hult
*/
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);
}
/** Returns a deep copy of this */
public abstract Continuation copy();
}
|