CUBRID Engine  latest
cubxasl::json_table::column Struct Reference

#include <access_json_table.hpp>

Collaboration diagram for cubxasl::json_table::column:
Collaboration graph

Public Member Functions

 column ()
 
void init ()
 
int evaluate (const JSON_DOC &input, size_t ordinality)
 
void clear_xasl (bool is_final_clear=true)
 

Public Attributes

tp_domainm_domain
 
char * m_path
 
char * m_column_name
 
json_table_column_behavior m_on_error
 
json_table_column_behavior m_on_empty
 
db_valuem_output_value_pointer
 
json_table_column_function m_function
 

Private Member Functions

int evaluate_extract (const JSON_DOC &input)
 
int evaluate_exists (const JSON_DOC &input)
 
int evaluate_ordinality (size_t ordinality)
 
int trigger_on_error (const JSON_DOC &input, const TP_DOMAIN_STATUS &status_cast, db_value &value_out)
 
int trigger_on_empty (db_value &value_out)
 

Detailed Description

Definition at line 46 of file access_json_table.hpp.

Constructor & Destructor Documentation

column::column ( void  )

Definition at line 107 of file access_json_table.cpp.

References init().

Member Function Documentation

void column::clear_xasl ( bool  is_final_clear = true)
int column::evaluate ( const JSON_DOC input,
size_t  ordinality 
)
int column::evaluate_exists ( const JSON_DOC input)
private

Definition at line 169 of file access_json_table.cpp.

References assert, ASSERT_ERROR, db_json_contains_path(), db_make_short(), db_value_is_null(), DOMAIN_COMPATIBLE, ER_FAILED, m_domain, m_output_value_pointer, m_path, NO_ERROR, and tp_value_cast().

Referenced by evaluate().

Here is the caller graph for this function:

int column::evaluate_ordinality ( size_t  ordinality)
private

Definition at line 195 of file access_json_table.cpp.

References assert, db_make_int(), DB_TYPE_INTEGER, pr_type::id, m_domain, m_output_value_pointer, NO_ERROR, and tp_domain::type.

Referenced by evaluate().

Here is the caller graph for this function:

Member Data Documentation

char* cubxasl::json_table::column::m_column_name
json_table_column_function cubxasl::json_table::column::m_function
json_table_column_behavior cubxasl::json_table::column::m_on_empty
json_table_column_behavior cubxasl::json_table::column::m_on_error

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