blob: ebda61dd8201cd31270aa1d895d3b8ece5775656 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "field_spec.h"
#include <cassert>
namespace search::queryeval {
FieldSpecBase::FieldSpecBase(uint32_t fieldId, fef::TermFieldHandle handle, bool isFilter_) :
_fieldId(fieldId | (isFilter_ ? 0x1000000u : 0)),
_handle(handle)
{
assert(fieldId < 0x1000000); // Can be represented by 24 bits
}
FieldSpecBaseList::~FieldSpecBaseList() = default;
FieldSpecList::~FieldSpecList() = default;
}
|