blob: b1a894b1def857d7822bd9ef02e12b9db1720ae0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "docsum_field_writer.h"
namespace search::docsummary {
/*
* Abstract class for writing document summaries that don't need
* access to a document retrieved from IDocsumStore.
*/
class SimpleDFW : public DocsumFieldWriter
{
public:
virtual void insertField(uint32_t docid, GetDocsumsState& state, vespalib::slime::Inserter &target) const = 0;
void insertField(uint32_t docid, const IDocsumStoreDocument*, GetDocsumsState& state, vespalib::slime::Inserter &target) const override;
};
}
|