blob: ce151d82fc01b50e839ee6fe32305a60ed13c706 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
namespace vespalib::slime { struct Inserter; }
namespace search::docsummary {
/*
* A subclass of this class can be instantiated by a document field writer to
* track extra state during handling of a document summary request and
* insert the field value using that state.
*/
class DocsumFieldWriterState
{
public:
virtual void insertField(uint32_t docId, vespalib::slime::Inserter &target) = 0;
virtual ~DocsumFieldWriterState() = default;
};
}
|