blob: 587a560f663a8a3980953c39204d0b76d1effcf5 (
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
32
|
// Copyright 2017 Yahoo Holdings. 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 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; }
};
} // namespace searchcorespi::index
} // namespace searchcorespi
|