aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary/src/vespa/searchsummary/docsummary/docsumstore.h
blob: 22bf516caaa3a3c71355391d2bb41c707016ad14 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <memory>

namespace search::docsummary {

class IDocsumStoreDocument;

/**
 * Interface used to fetch docsum specific abstract of documents based on local document id.
 **/
class IDocsumStore
{
public:
    using UP = std::unique_ptr<IDocsumStore>;

    virtual ~IDocsumStore() = default;

    /**
     * Get a docsum specific abstract of the document for the given local document id.
     **/
    virtual std::unique_ptr<const IDocsumStoreDocument> get_document(uint32_t docid) = 0;
};

}