aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/main/java/com/yahoo/storage/searcher/ContinuationHit.java
blob: c66af4f02bab3f885df641c6567bdb1cbc45c48a (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
29
30
31
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.storage.searcher;

import com.yahoo.documentapi.ProgressToken;
import com.yahoo.search.result.Hit;
import java.io.IOException;
import java.util.Base64;

/**
 * @deprecated
 */
@Deprecated // OK
// TODO: Remove on Vespa 7
public class ContinuationHit extends Hit {

    private final String value;

    public ContinuationHit(ProgressToken token) {
        super("continuation");
        value = token.serializeToString();
    }

    public static ProgressToken getToken(String continuation) {
        return ProgressToken.fromSerializedString(continuation);
    }

    public String getValue() {
        return value;
    }

}