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

#pragma once

namespace search::attribute {

/*
 * Class describing how to compact a reference attribute
 */
class ReferenceAttributeCompactionSpec {
    bool           _values;
    bool           _dictionary;
public:
    ReferenceAttributeCompactionSpec() noexcept
        : _values(false),
          _dictionary(false)
    {
    }
    ReferenceAttributeCompactionSpec(bool values_, bool dictionary_) noexcept
        : _values(values_),
          _dictionary(dictionary_)
    {
    }
    bool values() const noexcept { return _values; }
    bool dictionary() const noexcept { return _dictionary; }
};

}