6 #include "gen-cpp/Types_types.h"
8 using namespace impala;
11 int main(
int argc,
char** argv) {
12 google::InitGoogleLogging(argv[0]);
13 LOG(INFO) <<
"Hello world";
17 vector<uint8_t> result;
19 LOG(INFO) <<
"One TTypeNode: " << result.size() <<
" bytes";
21 tpe.__set_types(vector<TTypeNode>());
23 LOG(INFO) <<
"One TTypeNode (with empty types vector: " << result.size() <<
" bytes";
26 node.__set_scalar_type(TScalarType());
27 tpe.types.push_back(node);
29 LOG(INFO) <<
"One TTypeNode (with one-entry types vector: " << result.size() <<
" bytes";
32 tpe2.__set_scalar_type(TScalarType());
34 LOG(INFO) <<
"One TTypeNode (with a dedicated scalar type): " << result.size() <<
" bytes";
38 LOG(INFO) <<
"Sizeof scalar type: " << result.size() <<
" bytes";
int main(int argc, char **argv)
Status Serialize(T *obj, std::vector< uint8_t > *result)
Serializes obj into result. Result will contain a copy of the memory.