Class for use of Elasticsearch Scroll API with deprecated scan option.
More...
#include <scroll.h>
|
| ScrollByScan (ScrollByScan &&) |
|
| ScrollByScan (const std::shared_ptr< Client > &client, std::size_t scrollSize=100, const std::string &scrollTimeout="1m", int primaryShardsCount=0) |
|
| ScrollByScan (const std::vector< std::string > &hostUrlList, std::size_t scrollSize=100, const std::string &scrollTimeout="1m", int primaryShardsCount=0, std::int32_t connectionTimeout=6000) |
|
| Scroll (const std::shared_ptr< Client > &client, std::size_t scrollSize=100, const std::string &scrollTimeout="1m") |
|
| Scroll (const std::vector< std::string > &hostUrlList, std::size_t scrollSize=100, const std::string &scrollTimeout="1m", std::int32_t connectionTimeout=6000) |
|
| Scroll (Scroll &&) |
|
void | clear () |
| Clear scroll for next usage. Should be called immediately after last next() was called.
|
|
void | init (const std::string &indexName, const std::string &docType, const std::string &searchBody) |
|
bool | next (Json::Value &parsedResult) |
|
const std::shared_ptr< Client > & | getClient () const |
| Return Client class with current config.
|
|
|
virtual bool | createScroll (Json::Value &parsedResult) override |
|
|
std::unique_ptr< Implementation > | impl |
| Hidden implementation and data holder.
|
|
Class for use of Elasticsearch Scroll API with deprecated scan option.
◆ ScrollByScan() [1/2]
elasticlient::ScrollByScan::ScrollByScan |
( |
const std::shared_ptr< Client > & |
client, |
|
|
std::size_t |
scrollSize = 100 , |
|
|
const std::string & |
scrollTimeout = "1m" , |
|
|
int |
primaryShardsCount = 0 |
|
) |
| |
|
explicit |
◆ ScrollByScan() [2/2]
elasticlient::ScrollByScan::ScrollByScan |
( |
const std::vector< std::string > & |
hostUrlList, |
|
|
std::size_t |
scrollSize = 100 , |
|
|
const std::string & |
scrollTimeout = "1m" , |
|
|
int |
primaryShardsCount = 0 , |
|
|
std::int32_t |
connectionTimeout = 6000 |
|
) |
| |
|
explicit |
◆ createScroll()
virtual bool elasticlient::ScrollByScan::createScroll |
( |
Json::Value & |
parsedResult | ) |
|
|
overrideprotectedvirtual |
Creates new scroll - obtain scrollId and parsedResult Different from parrent Scroll::createScroll(), for scan it must make two Elasticsearch calls one for obtain scrollId and second for obtain first bulk of results.
Reimplemented from elasticlient::Scroll.
The documentation for this class was generated from the following file:
- /home/runner/work/elasticlient/elasticlient/include/elasticlient/scroll.h