OmniSciDB
a5dc49c757
|
Functions | |
void | set_value (rapidjson::Value &json_val, const ColumnDescriptor &column_desc, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, ColumnDescriptor &column_desc) |
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) |
void | set_value (rapidjson::Value &json_val, const bool &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, bool &value) |
void | set_value (rapidjson::Value &json_val, const SQLTypes &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, SQLTypes &value) |
void | set_value (rapidjson::Value &json_val, const EncodingType &value, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, EncodingType &value) |
void | set_value (rapidjson::Value &json_obj, const shared::StringDictKey &dict_key, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_obj, shared::StringDictKey &dict_key) |
void | set_value (rapidjson::Value &json_val, const SQLTypeInfo &type_info, rapidjson::Document::AllocatorType &allocator) |
void | get_value (const rapidjson::Value &json_val, SQLTypeInfo &type_info) |
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<typename T , typename MemberFunc > | |
void | get_value_from_object (const rapidjson::Value &json_val, MemberFunc mem_fn, SQLTypeInfo &type_info, const std::string &key) |
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 > | |
void | set_value (rapidjson::Value &json_val, const std::list< T > &list_value, rapidjson::Document::AllocatorType &allocator) |
template<class T > | |
void | get_value (const rapidjson::Value &json_val, std::list< T > &list_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::list< std::pair< T, V >> &list_value, rapidjson::Document::AllocatorType &allocator) |
template<class T , class V > | |
void | get_value (const rapidjson::Value &json_val, std::list< std::pair< T, V >> &list_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 json_utils::add_value_to_object | ( | rapidjson::Value & | object, |
const T & | value, | ||
const std::string & | name, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 255 of file JsonUtils.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(), AlterTableAlterColumnCommandRecoveryMgr::serializeRecoveryInformation(), foreign_storage::set_value(), and set_value().
std::optional< std::string > json_utils::get_optional_string_value_from_object | ( | const rapidjson::Value & | object, |
const std::string & | key | ||
) |
Definition at line 232 of file JsonUtils.cpp.
Referenced by foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_data_sources().
std::string json_utils::get_type_as_string | ( | const rapidjson::Value & | object | ) |
Definition at line 29 of file JsonUtils.cpp.
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
size_t & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
int & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::string & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
int64_t & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
bool & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
SQLTypes & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::vector< T > & | vector_value | ||
) |
Definition at line 131 of file JsonUtils.h.
References CHECK, CHECK_EQ, get_value(), and heavydb.dtypes::T.
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
EncodingType & | value | ||
) |
void json_utils::get_value | ( | const rapidjson::Value & | json_obj, |
shared::StringDictKey & | dict_key | ||
) |
Definition at line 148 of file JsonUtils.cpp.
References CHECK, shared::StringDictKey::db_id, shared::StringDictKey::dict_id, and get_value_from_object().
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::list< T > & | list_value | ||
) |
Definition at line 155 of file JsonUtils.h.
References CHECK, CHECK_EQ, get_value(), and heavydb.dtypes::T.
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
SQLTypeInfo & | type_info | ||
) |
Definition at line 175 of file JsonUtils.cpp.
References CHECK, SQLTypeInfo::set_comp_param(), SQLTypeInfo::set_compression(), SQLTypeInfo::set_dimension(), SQLTypeInfo::set_notnull(), SQLTypeInfo::set_scale(), SQLTypeInfo::set_size(), SQLTypeInfo::set_subtype(), SQLTypeInfo::set_type(), and SQLTypeInfo::setStringDictKeySkipCompParamCheck().
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::vector< std::pair< T, V >> & | vector_value | ||
) |
Definition at line 181 of file JsonUtils.h.
References CHECK, CHECK_EQ, get_value_from_object(), and heavydb.dtypes::T.
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::list< std::pair< T, V >> & | list_value | ||
) |
Definition at line 211 of file JsonUtils.h.
References CHECK, CHECK_EQ, get_value_from_object(), and heavydb.dtypes::T.
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
std::map< T, V > & | map_value | ||
) |
Definition at line 240 of file JsonUtils.h.
References CHECK, CHECK_EQ, get_value_from_object(), and heavydb.dtypes::T.
void json_utils::get_value | ( | const rapidjson::Value & | json_val, |
ColumnDescriptor & | column_desc | ||
) |
Definition at line 578 of file AlterColumnRecovery.cpp.
References CHECK, ColumnDescriptor::chunks, ColumnDescriptor::columnId, ColumnDescriptor::columnName, ColumnDescriptor::columnType, ColumnDescriptor::db_id, ColumnDescriptor::default_value, get_value_from_object(), ColumnDescriptor::isDeletedCol, ColumnDescriptor::isGeoPhyCol, ColumnDescriptor::isSystemCol, ColumnDescriptor::isVirtualCol, ColumnDescriptor::sourceName, ColumnDescriptor::tableId, and ColumnDescriptor::virtualExpr.
Referenced by get_value(), and get_value_from_object().
void json_utils::get_value_from_object | ( | const rapidjson::Value & | object, |
T & | value, | ||
const std::string & | name | ||
) |
Definition at line 270 of file JsonUtils.h.
References CHECK, get_value(), and setup::name.
Referenced by foreign_storage::CompressedFileReader::CompressedFileReader(), AlterTableAlterColumnCommandRecoveryMgr::deserializeRecoveryInformation(), foreign_storage::get_value(), get_value(), get_value_from_object(), foreign_storage::MultiFileReader::MultiFileReader(), foreign_storage::ParquetDataWrapper::restoreDataWrapperInternals(), foreign_storage::AbstractTextFileDataWrapper::restoreDataWrapperInternals(), and foreign_storage::SingleTextFileReader::SingleTextFileReader().
void json_utils::get_value_from_object | ( | const rapidjson::Value & | json_val, |
MemberFunc | mem_fn, | ||
SQLTypeInfo & | type_info, | ||
const std::string & | key | ||
) |
Definition at line 105 of file JsonUtils.h.
References get_value_from_object(), and heavydb.dtypes::T.
rapidjson::Document json_utils::read_from_file | ( | const std::string & | file_path | ) |
Definition at line 201 of file JsonUtils.cpp.
Referenced by AlterTableAlterColumnCommandRecoveryMgr::deserializeRecoveryInformation(), foreign_storage::ParquetDataWrapper::restoreDataWrapperInternals(), and foreign_storage::AbstractTextFileDataWrapper::restoreDataWrapperInternals().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const size_t & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 59 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const int & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 69 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::string & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 80 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const int64_t & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 92 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const bool & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 104 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const SQLTypes & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 116 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::vector< T > & | vector_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 119 of file JsonUtils.h.
References set_value().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const EncodingType & | value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 128 of file JsonUtils.cpp.
void json_utils::set_value | ( | rapidjson::Value & | json_obj, |
const shared::StringDictKey & | dict_key, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 140 of file JsonUtils.cpp.
References add_value_to_object(), shared::StringDictKey::db_id, and shared::StringDictKey::dict_id.
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::list< T > & | list_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 143 of file JsonUtils.h.
References set_value().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const SQLTypeInfo & | type_info, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 155 of file JsonUtils.cpp.
References add_value_to_object(), SQLTypeInfo::get_comp_param(), SQLTypeInfo::get_compression(), SQLTypeInfo::get_dimension(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_size(), SQLTypeInfo::get_subtype(), SQLTypeInfo::get_type(), and SQLTypeInfo::getStringDictKeySkipCompParamCheck().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::vector< std::pair< T, V >> & | vector_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 167 of file JsonUtils.h.
References add_value_to_object().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::list< std::pair< T, V >> & | list_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 197 of file JsonUtils.h.
References add_value_to_object().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const std::map< T, V > & | map_value, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 226 of file JsonUtils.h.
References add_value_to_object().
void json_utils::set_value | ( | rapidjson::Value & | json_val, |
const ColumnDescriptor & | column_desc, | ||
rapidjson::Document::AllocatorType & | allocator | ||
) |
Definition at line 552 of file AlterColumnRecovery.cpp.
References add_value_to_object(), ColumnDescriptor::chunks, ColumnDescriptor::columnId, ColumnDescriptor::columnName, ColumnDescriptor::columnType, ColumnDescriptor::db_id, ColumnDescriptor::default_value, ColumnDescriptor::isDeletedCol, ColumnDescriptor::isGeoPhyCol, ColumnDescriptor::isSystemCol, ColumnDescriptor::isVirtualCol, ColumnDescriptor::sourceName, ColumnDescriptor::tableId, and ColumnDescriptor::virtualExpr.
Referenced by add_value_to_object(), and set_value().
void json_utils::write_to_file | ( | const rapidjson::Document & | document, |
const std::string & | filepath | ||
) |
Definition at line 214 of file JsonUtils.cpp.
std::string json_utils::write_to_string | ( | const rapidjson::Document & | document | ) |
Definition at line 225 of file JsonUtils.cpp.
Referenced by foreign_storage::ParquetDataWrapper::getSerializedDataWrapper(), foreign_storage::AbstractTextFileDataWrapper::getSerializedDataWrapper(), and AlterTableAlterColumnCommandRecoveryMgr::serializeRecoveryInformation().