OmniSciDB
bf83d84833
|
Functions | |
void | set_value (rapidjson::Value &json_val, const long unsigned int &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, long unsigned int &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) |
rapidjson::Document | read_from_file (const std::string &file_path) |
void | write_to_file (const rapidjson::Document &document, const std::string &filepath) |
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::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 111 of file FsiJsonUtils.h.
References CHECK, and set_value().
Referenced by foreign_storage::SingleFileReader::serialize(), foreign_storage::CompressedFileReader::serialize(), foreign_storage::MultiFileReader::serialize(), foreign_storage::ParquetDataWrapper::serializeDataWrapperInternals(), foreign_storage::CsvDataWrapper::serializeDataWrapperInternals(), set_value(), and foreign_storage::set_value().
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
long unsigned int & | value | ||
) |
Definition at line 34 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::string & | value | ||
) |
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::vector< T > & | vector_value | ||
) |
Definition at line 70 of file FsiJsonUtils.h.
References CHECK, get_value(), and omnisci.dtypes::T.
void foreign_storage::json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::map< T, V > & | map_value | ||
) |
Definition at line 96 of file FsiJsonUtils.h.
References CHECK, get_value_from_object(), and omnisci.dtypes::T.
void foreign_storage::json_utils::get_value_from_object | ( | const rapidjson::Value & | object, |
T & | value, | ||
const std::string & | name | ||
) |
Definition at line 126 of file FsiJsonUtils.h.
References CHECK, and get_value().
Referenced by foreign_storage::CompressedFileReader::CompressedFileReader(), get_value(), foreign_storage::get_value(), foreign_storage::MultiFileReader::MultiFileReader(), foreign_storage::ParquetDataWrapper::restoreDataWrapperInternals(), foreign_storage::CsvDataWrapper::restoreDataWrapperInternals(), and foreign_storage::SingleFileReader::SingleFileReader().
rapidjson::Document foreign_storage::json_utils::read_from_file | ( | const std::string & | file_path | ) |
Definition at line 61 of file FsiJsonUtils.cpp.
Referenced by foreign_storage::ParquetDataWrapper::restoreDataWrapperInternals(), and foreign_storage::CsvDataWrapper::restoreDataWrapperInternals().
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const long unsigned int & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 29 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 39 of file FsiJsonUtils.cpp.
void foreign_storage::json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::string & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 50 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 58 of file FsiJsonUtils.h.
References set_value().
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 82 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 74 of file FsiJsonUtils.cpp.
Referenced by foreign_storage::ParquetDataWrapper::serializeDataWrapperInternals(), and foreign_storage::CsvDataWrapper::serializeDataWrapperInternals().