6 #ifndef __SHOW_GRAPH_H__
7 #define __SHOW_GRAPH_H__
27 options(std::map<std::string, std::string>())
56 ShowGraphRequest(
const std::string& graphName_,
const std::map<std::string, std::string>& options_):
63 std::map<std::string, std::string>
options;
69 template<>
struct codec_traits<gpudb::ShowGraphRequest>
79 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81 const std::vector<size_t> fo = rd->fieldOrder();
83 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
127 load(std::vector<int32_t>()),
128 memory(std::vector<int64_t>()),
143 info(std::map<std::string, std::string>())
164 std::map<std::string, std::string>
info;
170 template<>
struct codec_traits<gpudb::ShowGraphResponse>
174 ::avro::encode(e, v.
result);
175 ::avro::encode(e, v.
load);
176 ::avro::encode(e, v.
memory);
191 ::avro::encode(e, v.
info);
196 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
198 const std::vector<size_t> fo = rd->fieldOrder();
200 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
205 ::avro::decode(d, v.
result);
209 ::avro::decode(d, v.
load);
213 ::avro::decode(d, v.
memory);
273 ::avro::decode(d, v.
info);
283 ::avro::decode(d, v.
result);
284 ::avro::decode(d, v.
load);
285 ::avro::decode(d, v.
memory);
300 ::avro::decode(d, v.
info);
ShowGraphResponse()
Constructs a ShowGraphResponse object with default parameter values.
A set of input parameters for const.
std::vector< int64_t > memory
std::vector< std::string > graphOwnerResourceGroups
std::vector< int64_t > resourceCapacity
ShowGraphRequest()
Constructs a ShowGraphRequest object with default parameter values.
std::vector< std::string > graphOwnerUserNames
std::vector< int64_t > numEdges
std::map< std::string, std::string > options
std::vector< bool > isSyncDb
std::vector< std::string > originalRequest
std::vector< std::string > graphNames
A set of output parameters for const.
std::vector< bool > directed
std::vector< bool > hasInsertTableMonitor
ShowGraphRequest(const std::string &graphName_, const std::map< std::string, std::string > &options_)
Constructs a ShowGraphRequest object with the specified parameters.
std::vector< bool > isPartitioned
std::vector< int64_t > numBytes
std::vector< bool > isPersisted
std::vector< int64_t > numNodes
std::vector< int32_t > load
std::map< std::string, std::string > info
std::vector< int32_t > graphServerIds