summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/ide/completion/name/service/ranking/dummy.cpp
blob: 89258599aa7be6295f54e7097c7defe660f751ee (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
#include "dummy.h"

namespace NSQLComplete {

namespace {

class TRanking: public IRanking {
public:
    void CropToSortedPrefix(
        TVector<TGenericName>& names,
        const TNameConstraints& /* constraints */,
        size_t limit) const override {
        names.crop(limit);
    }
};

} // namespace

IRanking::TPtr MakeDummyRanking() {
    return new TRanking();
}

} // namespace NSQLComplete