6 #ifndef __CREATE_GRAPH_H__
7 #define __CREATE_GRAPH_H__
39 nodes(std::vector<std::string>()),
40 edges(std::vector<std::string>()),
41 weights(std::vector<std::string>()),
43 options(std::map<std::string, std::string>())
305 CreateGraphRequest(
const std::string& graphName_,
const bool directedGraph_,
const std::vector<std::string>& nodes_,
const std::vector<std::string>& edges_,
const std::vector<std::string>& weights_,
const std::vector<std::string>& restrictions_,
const std::map<std::string, std::string>& options_):
328 template<>
struct codec_traits<gpudb::CreateGraphRequest>
334 ::avro::encode(e, v.
nodes);
335 ::avro::encode(e, v.
edges);
343 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
345 const std::vector<size_t> fo = rd->fieldOrder();
347 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
360 ::avro::decode(d, v.
nodes);
364 ::avro::decode(d, v.
edges);
388 ::avro::decode(d, v.
nodes);
389 ::avro::decode(d, v.
edges);
429 info(std::map<std::string, std::string>())
436 std::map<std::string, std::string>
info;
442 template<>
struct codec_traits<gpudb::CreateGraphResponse>
449 ::avro::encode(e, v.
info);
454 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
456 const std::vector<size_t> fo = rd->fieldOrder();
458 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
475 ::avro::decode(d, v.
info);
488 ::avro::decode(d, v.
info);
std::vector< std::string > edges
CreateGraphResponse()
Constructs a CreateGraphResponse object with default parameter values.
CreateGraphRequest()
Constructs a CreateGraphRequest object with default parameter values.
CreateGraphRequest(const std::string &graphName_, const bool directedGraph_, const std::vector< std::string > &nodes_, const std::vector< std::string > &edges_, const std::vector< std::string > &weights_, const std::vector< std::string > &restrictions_, const std::map< std::string, std::string > &options_)
Constructs a CreateGraphRequest object with the specified parameters.
std::map< std::string, std::string > info
A set of output parameters for const.
std::vector< int64_t > edgesIds
std::map< std::string, std::string > options
std::vector< std::string > nodes
std::vector< std::string > weights
A set of input parameters for const.
std::vector< std::string > restrictions