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

#include "bitvectorkeyscope.h"
#include <cassert>

using search::diskindex::BitVectorKeyScope;

namespace search::diskindex {

const char *getBitVectorKeyScopeSuffix(BitVectorKeyScope scope)
{
    switch (scope) {
    case BitVectorKeyScope::SHARED_WORDS:
        return ".bidx";
    default:
        return ".idx";
    }
}

}