aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/test/attribute_utils.h
blob: bbc200c63e2f30045b6e4ea2633311be515f4398 (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.
#pragma once

#include <cstdint>

namespace search { class AttributeVector; }
namespace search::attribute { class Config; }

namespace proton::test {

struct AttributeUtils
{
    using Config = search::attribute::Config;
    static void fillAttribute(search::AttributeVector &attr, uint32_t numDocs, int64_t value, uint64_t lastSyncToken);
    static void fillAttribute(search::AttributeVector &attr, uint32_t from, uint32_t to, int64_t value, uint64_t lastSyncToken);
    static const Config & getInt32Config();
    static const Config & getInt32ArrayConfig();
    static const Config & getStringConfig();
    static const Config & getPredicateConfig();
    static const Config & getTensorConfig();
};

}