blob: 7f1c62c7720d6a04bcbdfc4e74fc60216f67ac8f (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "attributesaver.h"
#include "enumattributesaver.h"
#include "save_utils.h"
namespace search {
/*
* Class for saving a single value enumerated attribute.
*/
class SingleValueEnumAttributeSaver : public AttributeSaver
{
private:
attribute::EntryRefVector _indices;
EnumAttributeSaver _enumSaver;
bool onSave(IAttributeSaveTarget &saveTarget) override;
public:
SingleValueEnumAttributeSaver(vespalib::GenerationHandler::Guard &&guard,
const attribute::AttributeHeader &header,
attribute::EntryRefVector &&indices,
IEnumStore &enumStore);
~SingleValueEnumAttributeSaver() override;
};
} // namespace search
|