aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/btree/btreetraits.h
blob: 22b8addee86c7c1ab9259fbf7a813363fa1f6a95 (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.

#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>;

}