OmniSciDB
c1a53651b2
|
Functions | |
std::string | get_type_as_string (const rapidjson::Value &object) |
void | set_value (rapidjson::Value &json_val, const size_t &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, size_t &value) |
void | set_value (rapidjson::Value &json_val, const int &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, int &value) |
void | set_value (rapidjson::Value &json_val, const std::string &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, std::string &value) |
void | set_value (rapidjson::Value &json_val, const int64_t &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, int64_t &value) |
rapidjson::Document | read_from_file (const std::string &file_path) |
void | write_to_file (const rapidjson::Document &document, const std::string &filepath) |
std::string | write_to_string (const rapidjson::Document &document) |
std::optional< std::string > | get_optional_string_value_from_object (const rapidjson::Value &object, const std::string &key) |
template<class T > | |
void | add_value_to_object (rapidjson::Value &object, const T &value, const std::string &name, rapidjson::Document::AllocatorType &allocator) |
template<class T > | |
void | get_value_from_object (const rapidjson::Value &object, T &value, const std::string &name) |
template<class T > | |
void | set_value (rapidjson::Value &json_val, const std::vector< T > &vector_value, rapidjson::Document::AllocatorType &allocator) |
template<class T > | |
void | get_value (const rapidjson::Value &json_val, std::vector< T > &vector_value) |
template<class T , class V > | |
void | set_value (rapidjson::Value &json_val, const std::vector< std::pair< T, V >> &vector_value, rapidjson::Document::AllocatorType &allocator) |
template<class T , class V > | |
void | get_value (const rapidjson::Value &json_val, std::vector< std::pair< T, V >> &vector_value) |
template<class T , class V > | |
void | set_value (rapidjson::Value &json_val, const std::map< T, V > &map_value, rapidjson::Document::AllocatorType &allocator) |
template<class T , class V > | |
void | get_value (const rapidjson::Value &json_val, std::map< T, V > &map_value) |
void foreign_storage::json_utils::add_value_to_object | ( | rapidjson::Value & | object, |
const T & | value, | ||
const std::string & | name, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 157 of file FsiJsonUtils.h.
References CHECK, setup::name, and set_value().
Referenced by foreign_storage::ParquetDataWrapper::getSerializedDataWrapper(), foreign_storage::AbstractTextFileDataWrapper::getSerializedDataWrapper(), foreign_storage::SingleTextFileReader::serialize(), foreign_storage::CompressedFileReader::serialize(), foreign_storage::MultiFileReader::serialize(), foreign_storage::set_value(), and set_value().
std::optional< std::string > foreign_storage::json_utils::get_optional_string_value_from_object | ( | const rapidjson::Value & | object, |
const std::string & | key | ||
) |
Definition at line 135 of file FsiJsonUtils.cpp.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_data_sources().
std::string foreign_storage::json_utils::get_type_as_string | ( | const rapidjson::Value & | object | ) |
Definition at line 30 of file FsiJsonUtils.cpp.
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
size_t & | value | ||
) |
Definition at line 65 of file FsiJsonUtils.cpp.
References CHECK.
Referenced by get_value(), and get_value_from_object().
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
int & | value | ||
) |
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::vector< T > & | vector_value | ||
) |
Definition at line 86 of file FsiJsonUtils.h.
References CHECK, get_value(), and heavydb.dtypes::T.
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::string & | value | ||
) |
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
int64_t & | value | ||
) |
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::vector< std::pair< T, V >> & | vector_value | ||
) |
Definition at line 112 of file FsiJsonUtils.h.
References CHECK, get_value_from_object(), and heavydb.dtypes::T.
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::map< T, V > & | map_value | ||
) |
Definition at line 142 of file FsiJsonUtils.h.
References CHECK, get_value_from_object(), and heavydb.dtypes::T.
void foreign_storage::json_utils::get_value_from_object | ( | const rapidjson::Value & | object, |
T & | value, | ||
const std::string & | name | ||
) |
Definition at line 172 of file FsiJsonUtils.h.
References CHECK, get_value(), and setup::name.
Referenced by foreign_storage::CompressedFileReader::CompressedFileReader(), foreign_storage::get_value(), get_value(), foreign_storage::MultiFileReader::MultiFileReader(), foreign_storage::ParquetDataWrapper::restoreDataWrapperInternals(), foreign_storage::AbstractTextFileDataWrapper::restoreDataWrapperInternals(), and foreign_storage::SingleTextFileReader::SingleTextFileReader().
rapidjson::Document foreign_storage::json_utils::read_from_file | ( | const std::string & | file_path | ) |
Definition at line 104 of file FsiJsonUtils.cpp.
Referenced by foreign_storage::ParquetDataWrapper::restoreDataWrapperInternals(), and foreign_storage::AbstractTextFileDataWrapper::restoreDataWrapperInternals().
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const size_t & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 60 of file FsiJsonUtils.cpp.
Referenced by add_value_to_object(), and set_value().
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const int & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 70 of file FsiJsonUtils.cpp.
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::vector< T > & | vector_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 74 of file FsiJsonUtils.h.
References set_value().
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::string & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 81 of file FsiJsonUtils.cpp.
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const int64_t & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 93 of file FsiJsonUtils.cpp.
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::vector< std::pair< T, V >> & | vector_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 98 of file FsiJsonUtils.h.
References add_value_to_object().
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::map< T, V > & | map_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 128 of file FsiJsonUtils.h.
References add_value_to_object().
void foreign_storage::json_utils::write_to_file | ( | const rapidjson::Document & | document, |
const std::string & | filepath | ||
) |
Definition at line 117 of file FsiJsonUtils.cpp.
std::string foreign_storage::json_utils::write_to_string | ( | const rapidjson::Document & | document | ) |
Definition at line 128 of file FsiJsonUtils.cpp.
Referenced by foreign_storage::ParquetDataWrapper::getSerializedDataWrapper(), and foreign_storage::AbstractTextFileDataWrapper::getSerializedDataWrapper().