blob: f87987f273b8edd7ce069431624f4ea03053238a (
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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchsummary/docsummary/docsumstore.h>
#include <vespa/searchlib/docstore/idocumentstore.h>
namespace proton {
class DocumentStoreAdapter : public search::docsummary::IDocsumStore
{
private:
const search::IDocumentStore & _docStore;
const document::DocumentTypeRepo & _repo;
public:
DocumentStoreAdapter(const search::IDocumentStore &docStore,
const document::DocumentTypeRepo &repo);
~DocumentStoreAdapter();
std::unique_ptr<const search::docsummary::IDocsumStoreDocument> get_document(uint32_t docId) override;
};
} // namespace proton
|