Definition at line 425 of file DdlCommandExecutor.cpp.
anonymous_namespace{DdlCommandExecutor.cpp}::JsonColumnEncoding::JsonColumnEncoding |
( |
const rapidjson::Value & |
data_type | ) |
|
|
inline |
Definition at line 427 of file DdlCommandExecutor.cpp.
static int getEncodingParam(const rapidjson::Value &data_type)
static std::string * getEncodingName(const rapidjson::Value &data_type)
std::string * JsonColumnEncoding::getEncodingName |
( |
const rapidjson::Value & |
data_type | ) |
|
|
staticprivate |
Definition at line 1348 of file DdlCommandExecutor.cpp.
References CHECK.
1349 CHECK(data_type.IsObject());
1350 CHECK(data_type.HasMember(
"encoding"));
1351 CHECK(data_type[
"encoding"].IsObject());
1353 const auto& encoding = data_type[
"encoding"].GetObject();
1354 CHECK(encoding.HasMember(
"type"));
1355 CHECK(encoding[
"type"].IsString());
1356 return new std::string(encoding[
"type"].GetString());
int JsonColumnEncoding::getEncodingParam |
( |
const rapidjson::Value & |
data_type | ) |
|
|
staticprivate |
Definition at line 1359 of file DdlCommandExecutor.cpp.
References CHECK.
1360 CHECK(data_type.IsObject());
1361 CHECK(data_type.HasMember(
"encoding"));
1362 CHECK(data_type[
"encoding"].IsObject());
1364 int encoding_size = 0;
1365 const auto& encoding = data_type[
"encoding"].GetObject();
1366 if (encoding.HasMember(
"size") && !encoding[
"size"].IsNull()) {
1367 CHECK(encoding[
"size"].IsInt());
1368 encoding_size = encoding[
"size"].GetInt();
1370 return encoding_size;
The documentation for this class was generated from the following file: