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>())
262 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_):
285 template<>
struct codec_traits<gpudb::CreateGraphRequest>
291 ::avro::encode(e, v.
nodes);
292 ::avro::encode(e, v.
edges);
300 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
302 const std::vector<size_t> fo = rd->fieldOrder();
304 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
317 ::avro::decode(d, v.
nodes);
321 ::avro::decode(d, v.
edges);
345 ::avro::decode(d, v.
nodes);
346 ::avro::decode(d, v.
edges);
387 info(std::map<std::string, std::string>())
395 std::map<std::string, std::string>
info;
401 template<>
struct codec_traits<gpudb::CreateGraphResponse>
405 ::avro::encode(e, v.
result);
409 ::avro::encode(e, v.
info);
414 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
416 const std::vector<size_t> fo = rd->fieldOrder();
418 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
423 ::avro::decode(d, v.
result);
439 ::avro::decode(d, v.
info);
449 ::avro::decode(d, v.
result);
453 ::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