aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/test/resulthandler.cpp
blob: 8a82efd0663b96a661162b530f8f7279694973cb (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 Vespa.ai. 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));
}

}