aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/multivalueattributesaver.cpp
blob: bb068c3b7261d8b5e20a77ef569e71d85ea451ef (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "multivalueattributesaver.h"
#include "multi_value_mapping_base.h"

using vespalib::GenerationHandler;

namespace search {

MultiValueAttributeSaver::
MultiValueAttributeSaver(GenerationHandler::Guard &&guard,
                         const attribute::AttributeHeader &header,
                         const MvMappingBase &mvMapping)
    : AttributeSaver(std::move(guard), header),
      _frozenIndices(attribute::make_entry_ref_vector_snapshot(mvMapping.get_ref_vector(), header.getNumDocs()))
{
}


MultiValueAttributeSaver::~MultiValueAttributeSaver()
{
}

}  // namespace search