| 1 | /* |
|---|---|
| 2 | SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 | */ |
| 6 | |
| 7 | #include "postingiterator.h" |
| 8 | |
| 9 | using namespace Baloo; |
| 10 | |
| 11 | PostingIterator::~PostingIterator() |
| 12 | { |
| 13 | } |
| 14 | |
| 15 | quint64 PostingIterator::skipTo(quint64 id) |
| 16 | { |
| 17 | quint64 currentId = docId(); |
| 18 | while (currentId < id) { |
| 19 | currentId = next(); |
| 20 | if (!currentId) { |
| 21 | break; |
| 22 | } |
| 23 | } |
| 24 | return currentId; |
| 25 | } |
| 26 |
