blob: a4af2418ae3307f43361b8a45b8f3dc2b3e01a74 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "fusionspec.h"
#include <vespa/searchlib/common/serialnum.h>
#include <vespa/vespalib/stllike/string.h>
namespace searchcorespi {
namespace index {
/**
* Utility class with functions to read aspects of an index from disk.
* Used by the index maintainer.
*/
struct IndexReadUtilities {
static FusionSpec readFusionSpec(const vespalib::string &baseDir);
static search::SerialNum readSerialNum(const vespalib::string &dir);
};
} // namespace index
} // namespace searchcorespi
|