blob: dda44fdcd96139e3ca74c1bfd7a99fa0e8b8fefd (
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 Yahoo. 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; }
};
}
|