blob: fea875dee05160079996b7164e117a80713b9b01 (
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
25
26
27
28
29
30
31
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "indexsearchable.h"
#include <vespa/searchcommon/common/schema.h>
#include <vespa/vespalib/stllike/string.h>
namespace searchcorespi::index {
/**
* Interface for a disk index as seen from an index maintainer.
*/
struct IDiskIndex : public IndexSearchable {
using SP = std::shared_ptr<IDiskIndex>;
virtual ~IDiskIndex() {}
/**
* Returns the directory in which this disk index exists.
*/
virtual const vespalib::string &getIndexDir() const = 0;
/**
* Returns the schema used by this disk index.
* Note that the schema should be part of the index on disk.
*/
virtual const search::index::Schema &getSchema() const = 0;
};
}
|