blob: 3e585ac756baccc28fd39d7796e0ed86ad8dc120 (
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
32
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "attributesaver.h"
#include "save_utils.h"
namespace search { class BufferWriter; }
namespace search::attribute {
class RawBufferStore;
/**
* Class for saving a single raw attribute.
*/
class SingleRawAttributeSaver : public AttributeSaver
{
EntryRefVector _ref_vector;
const RawBufferStore& _raw_store;
void save_raw_store(BufferWriter& writer) const;
bool onSave(IAttributeSaveTarget &saveTarget) override;
public:
SingleRawAttributeSaver(vespalib::GenerationHandler::Guard &&guard,
const attribute::AttributeHeader &header,
EntryRefVector&& ref_vector,
const RawBufferStore& raw_store);
~SingleRawAttributeSaver();
};
}
|