33 std::unique_ptr<Implementation>
impl;
43 explicit Scroll(
const std::shared_ptr<Client> &client,
44 std::size_t scrollSize = 100,
45 const std::string &scrollTimeout =
"1m");
56 explicit Scroll(
const std::vector<std::string> &hostUrlList,
57 std::size_t scrollSize = 100,
58 const std::string &scrollTimeout =
"1m",
59 std::int32_t connectionTimeout = 6000);
74 void init(
const std::string &indexName,
75 const std::string &docType,
76 const std::string &searchBody);
83 bool next(Json::Value &parsedResult);
86 const std::shared_ptr<Client> &
getClient()
const;
100 explicit ScrollByScan(
const std::shared_ptr<Client> &client,
101 std::size_t scrollSize = 100,
102 const std::string &scrollTimeout =
"1m",
103 int primaryShardsCount = 0);
106 explicit ScrollByScan(
const std::vector<std::string> &hostUrlList,
107 std::size_t scrollSize = 100,
108 const std::string &scrollTimeout =
"1m",
109 int primaryShardsCount = 0,
110 std::int32_t connectionTimeout = 6000);
119 virtual bool createScroll(Json::Value &parsedResult)
override;