6 #ifndef __SHOW_GRAPH_H__ 7 #define __SHOW_GRAPH_H__ 25 options(std::map<std::string, std::string>())
63 ShowGraphRequest(
const std::string& graphName_,
const std::map<std::string, std::string>& options_):
97 std::map<std::string, std::string>
options;
103 template<>
struct codec_traits<
gpudb::ShowGraphRequest>
113 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
115 const std::vector<size_t> fo = rd->fieldOrder();
117 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
156 load(std::vector<int32_t>()),
157 memory(std::vector<int64_t>()),
172 info(std::map<std::string, std::string>())
276 std::map<std::string, std::string>
info;
282 template<>
struct codec_traits<
gpudb::ShowGraphResponse>
286 ::avro::encode(e, v.
result);
287 ::avro::encode(e, v.
load);
288 ::avro::encode(e, v.
memory);
303 ::avro::encode(e, v.
info);
308 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
310 const std::vector<size_t> fo = rd->fieldOrder();
312 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
317 ::avro::decode(d, v.
result);
321 ::avro::decode(d, v.
load);
325 ::avro::decode(d, v.
memory);
385 ::avro::decode(d, v.
info);
395 ::avro::decode(d, v.
result);
396 ::avro::decode(d, v.
load);
397 ::avro::decode(d, v.
memory);
412 ::avro::decode(d, v.
info);
418 #endif // __SHOW_GRAPH_H__ ShowGraphResponse()
Constructs a ShowGraphResponse object with default parameters.
A set of parameters for GPUdb::showGraph.
std::vector< int64_t > memory
Available memory.
std::vector< std::string > graphOwnerResourceGroups
Owner of the resource groups(s) of the graph(s).
std::vector< int64_t > resourceCapacity
Memory this graph uses in bytes.
ShowGraphRequest()
Constructs a ShowGraphRequest object with default parameters.
std::vector< std::string > graphOwnerUserNames
Owner of the graph(s) and associated solution table(s).
std::vector< int64_t > numEdges
Total number of edges in the graph.
std::map< std::string, std::string > options
Optional parameters.
std::vector< bool > isSyncDb
Shows whether or not the graph is linked to the original tables that created it, and will potentially...
std::vector< std::string > originalRequest
The original client request used to create the graph (before any expression evaluation or separator p...
std::vector< std::string > graphNames
Name(s) of the graph(s).
A set of results returned by GPUdb::showGraph.
std::vector< bool > directed
Whether or not the edges of the graph have directions (bi-directional edges can still exist in direct...
std::vector< bool > hasInsertTableMonitor
Shows whether or not the graph has an insert table monitor attached to it.
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
Indicates if the graph data is distributed across all available servers.
std::vector< int64_t > numBytes
Memory this graph uses in bytes.
std::string graphName
Name of the graph on which to retrieve information.
std::vector< bool > isPersisted
Shows whether or not the graph is persisted (saved and loaded on launch).
std::vector< int64_t > numNodes
Total number of nodes in the graph.
std::vector< int32_t > load
A percentage approximating the current computational load on the server.
std::map< std::string, std::string > info
Additional information.
std::vector< int32_t > graphServerIds
Id(s) of the graph(s).
bool result
Indicates a success.