aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcorespi/index/index_searchable_stats.cpp
blob: f74c9c5813269138249a6f6ebed53bf4b533217e (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.

#include "index_searchable_stats.h"
#include "indexsearchable.h"


namespace searchcorespi::index {

IndexSearchableStats::IndexSearchableStats()
    : _serialNum(0),
      _searchableStats()
{
}

IndexSearchableStats::IndexSearchableStats(const IndexSearchable &index)
    : _serialNum(index.getSerialNum()),
      _searchableStats(index.getSearchableStats())
{
}

bool IndexSearchableStats::operator<(const IndexSearchableStats &rhs) const
{
    return _serialNum < rhs._serialNum;
}

} // namespace searchcorespi::index