blob: f85a2cf4af6b7cc7b2bbe4b813a9290d323a5a29 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace searchcorespi {
namespace index {
struct IDiskIndex;
struct IMemoryIndex;
}
/*
* Interface for visiting an index searchable containing disk and
* memory indexes.
*/
class IndexSearchableVisitor
{
public:
virtual ~IndexSearchableVisitor() { }
virtual void visit(const index::IDiskIndex &index) = 0;
virtual void visit(const index::IMemoryIndex &index) = 0;
};
} // namespace searchcorespi
|