aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/test/resulthandler.cpp
blob: 00102aeab25edc5334cdef470ee17103c8e62d62 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "resulthandler.h"

namespace proton::test {

GenericResultHandler::~GenericResultHandler() = default;

void
GenericResultHandler::handle(const storage::spi::Result &result) {
    _result = std::make_unique<storage::spi::Result>(result);
}

BucketInfoResultHandler::~BucketInfoResultHandler() = default;
void
BucketInfoResultHandler::handle(const storage::spi::BucketInfoResult &result) {
    _result = std::make_unique<storage::spi::BucketInfoResult>(result);
}

BucketIdListResultHandler::~BucketIdListResultHandler() = default;

void
BucketIdListResultHandler::handle(storage::spi::BucketIdListResult result) {
    _result = std::make_unique<storage::spi::BucketIdListResult>(std::move(result));
}

}