aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Disks/ObjectStorages/ObjectStorageIterator.cpp
blob: 72ec6e0e5006d67271e159f935bb0078741901f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Disks/ObjectStorages/ObjectStorageIterator.h>
#include <Common/Exception.h>

namespace DB
{

namespace ErrorCodes
{
    extern const int LOGICAL_ERROR;
}

RelativePathWithMetadata ObjectStorageIteratorFromList::current()
{
    if (!isValid())
        throw Exception(ErrorCodes::LOGICAL_ERROR, "Trying to access invalid iterator");

    return *batch_iterator;
}

}