aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/btree/btreetraits.h
blob: 8f63afec0c77daa4d159d22144d5f8ae80872138 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <cstddef>

namespace vespalib::btree {

template <size_t LS, size_t IS, size_t PS, bool BS>
struct BTreeTraits {
    static constexpr size_t LEAF_SLOTS = LS;
    static constexpr size_t INTERNAL_SLOTS = IS;
    static constexpr size_t PATH_SIZE = PS;
    static constexpr bool BINARY_SEEK = BS;
};

using BTreeDefaultTraits = BTreeTraits<16, 16, 10, true>;

}