aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcorespi/index/index_searchable_stats.h
blob: 023649524706669154600313d23c0088eb84b4d2 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/common/serialnum.h>
#include <vespa/searchlib/util/searchable_stats.h>

namespace searchcorespi { class IndexSearchable; }

namespace searchcorespi::index {

/**
 * Information about a searchable index usable by state explorer.
 */
class IndexSearchableStats
{
    using SerialNum = search::SerialNum;
    using SearchableStats = search::SearchableStats;
    SerialNum       _serialNum;
    SearchableStats _searchableStats;
public:
    IndexSearchableStats();
    IndexSearchableStats(const IndexSearchable &index);
    bool operator<(const IndexSearchableStats &rhs) const;
    SerialNum getSerialNum() const { return _serialNum; }
    const SearchableStats &getSearchableStats() const { return _searchableStats; }
};

}