aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h
blob: 739762987f6c0b2ef35734af27a10cb8a9dccaa5 (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 Vespa.ai. 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