6 #ifndef __SHOW_GRAPH_H__ 7 #define __SHOW_GRAPH_H__ 25 options(std::map<std::string, std::string>())
80 ShowGraphRequest(
const std::string& graphName_,
const std::map<std::string, std::string>& options_):
131 template<>
struct codec_traits<
gpudb::ShowGraphRequest>
141 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
143 const std::vector<size_t> fo = rd->fieldOrder();
145 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
184 load(std::vector<int32_t>()),
185 memory(std::vector<int64_t>()),
200 info(std::map<std::string, std::string>())
304 std::map<std::string, std::string>
info;
310 template<>
struct codec_traits<
gpudb::ShowGraphResponse>
314 ::avro::encode(e, v.
result);
315 ::avro::encode(e, v.
load);
316 ::avro::encode(e, v.
memory);
331 ::avro::encode(e, v.
info);
336 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
338 const std::vector<size_t> fo = rd->fieldOrder();
340 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
345 ::avro::decode(d, v.
result);
349 ::avro::decode(d, v.
load);
353 ::avro::decode(d, v.
memory);
413 ::avro::decode(d, v.
info);
423 ::avro::decode(d, v.
result);
424 ::avro::decode(d, v.
load);
425 ::avro::decode(d, v.
memory);
440 ::avro::decode(d, v.
info);
446 #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.