blob: a61245ddb5d6055a6be473834751c078de1f7e94 (
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 Yahoo. 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; }
};
}
|