BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Static Public Attributes | List of all members
graphene::utilities::es_client Class Reference

#include <elasticsearch.hpp>

Public Member Functions

 es_client (const std::string &p_base_url, const std::string &p_auth)
bool check_status () const
std::string get_version () const
void check_version_7_or_above (bool &result) const noexcept
bool send_bulk (const std::vector< std::string > &bulk_lines) const
bool del (const std::string &path) const
std::string get (const std::string &path) const
std::string query (const std::string &path, const std::string &query) const

Static Public Attributes

static constexpr size_t request_size_threshold = 4 * 1024 * 1024
 When doing bulk operations, call send_bulk when the approximate size of pending data reaches this value. More...

Detailed Description

Definition at line 95 of file elasticsearch.hpp.

Constructor & Destructor Documentation

◆ es_client()

graphene::utilities::es_client::es_client ( const std::string &  p_base_url,
const std::string &  p_auth 

Definition at line 98 of file elasticsearch.hpp.

Member Function Documentation

◆ check_status()

bool graphene::utilities::es_client::check_status ( ) const

Definition at line 197 of file elasticsearch.cpp.

◆ check_version_7_or_above()

void graphene::utilities::es_client::check_version_7_or_above ( bool &  result) const

Definition at line 216 of file elasticsearch.cpp.

◆ del()

bool graphene::utilities::es_client::del ( const std::string &  path) const

Definition at line 240 of file elasticsearch.cpp.

◆ get()

std::string graphene::utilities::es_client::get ( const std::string &  path) const

Definition at line 248 of file elasticsearch.cpp.

◆ get_version()

std::string graphene::utilities::es_client::get_version ( ) const

Definition at line 205 of file elasticsearch.cpp.

◆ query()

std::string graphene::utilities::es_client::query ( const std::string &  path,
const std::string &  query 
) const

Definition at line 256 of file elasticsearch.cpp.

◆ send_bulk()

bool graphene::utilities::es_client::send_bulk ( const std::vector< std::string > &  bulk_lines) const

Definition at line 232 of file elasticsearch.cpp.

Member Data Documentation

◆ request_size_threshold

constexpr size_t graphene::utilities::es_client::request_size_threshold = 4 * 1024 * 1024

When doing bulk operations, call send_bulk when the approximate size of pending data reaches this value.

Definition at line 110 of file elasticsearch.hpp.

The documentation for this class was generated from the following files: