blob: 75ed3d9db808bdd31c601c740489eaa6a2bbc058 (
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
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "visitor.h"
#include <vespa/vdslib/container/searchresult.h>
namespace storage {
namespace api {
/**
* @class SearchResultCommand
* @ingroup message
*
* @brief The result of a searchvisitor.
*/
class SearchResultCommand : public StorageCommand, public vdslib::SearchResult {
public:
SearchResultCommand();
void print(std::ostream& out, bool verbose, const std::string& indent) const override;
uint32_t getMemoryFootprint() const override { return getSerializedSize(); }
DECLARE_STORAGECOMMAND(SearchResultCommand, onSearchResult)
};
/**
* @class SearchResultReply
* @ingroup message
*
* @brief Response to a search result command.
*/
class SearchResultReply : public StorageReply {
public:
explicit SearchResultReply(const SearchResultCommand& command);
void print(std::ostream& out, bool verbose, const std::string& indent) const override;
DECLARE_STORAGEREPLY(SearchResultReply, onSearchResultReply)
};
} // api
} // storage
|