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

#include <elasticsearch.hpp>

Public Types

enum  data_type { data_type::static_variant_type, data_type::map_type, data_type::array_type }
 

Static Public Member Functions

static fc::variant adapt (const fc::variant_object &op, uint16_t max_depth)
 
static fc::variant adapt (const fc::variants &v, data_type type, uint16_t max_depth)
 
static fc::variant adapt_map_item (const fc::variants &v, uint16_t max_depth)
 
static fc::variant adapt_static_variant (const fc::variants &v, uint16_t max_depth)
 
static void in_situ_adapt (fc::variants &v, uint16_t max_depth)
 Update directly, no return. More...
 
static void extract_data_from_variant (const fc::variant &v, fc::mutable_variant_object &mv, const std::string &prefix, uint16_t max_depth)
 Extract data from v into mv. More...
 

Detailed Description

Definition at line 119 of file elasticsearch.hpp.

Member Enumeration Documentation

◆ data_type

Enumerator
static_variant_type 
map_type 
array_type 

Definition at line 121 of file elasticsearch.hpp.

Member Function Documentation

◆ adapt() [1/2]

fc::variant graphene::utilities::es_data_adaptor::adapt ( const fc::variant_object op,
uint16_t  max_depth 
)
static

Definition at line 264 of file elasticsearch.cpp.

◆ adapt() [2/2]

fc::variant graphene::utilities::es_data_adaptor::adapt ( const fc::variants v,
data_type  type,
uint16_t  max_depth 
)
static

Definition at line 384 of file elasticsearch.cpp.

◆ adapt_map_item()

fc::variant graphene::utilities::es_data_adaptor::adapt_map_item ( const fc::variants v,
uint16_t  max_depth 
)
static

Definition at line 431 of file elasticsearch.cpp.

◆ adapt_static_variant()

fc::variant graphene::utilities::es_data_adaptor::adapt_static_variant ( const fc::variants v,
uint16_t  max_depth 
)
static

Definition at line 451 of file elasticsearch.cpp.

◆ extract_data_from_variant()

void graphene::utilities::es_data_adaptor::extract_data_from_variant ( const fc::variant v,
fc::mutable_variant_object mv,
const std::string &  prefix,
uint16_t  max_depth 
)
static

Extract data from v into mv.

Definition at line 412 of file elasticsearch.cpp.

◆ in_situ_adapt()

void graphene::utilities::es_data_adaptor::in_situ_adapt ( fc::variants v,
uint16_t  max_depth 
)
static

Update directly, no return.

Definition at line 471 of file elasticsearch.cpp.


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