6 #ifndef __SOLVE_GRAPH_H__
7 #define __SOLVE_GRAPH_H__
46 options(std::map<std::string, std::string>())
325 SolveGraphRequest(
const std::string& graphName_,
const std::vector<std::string>& weightsOnEdges_,
const std::vector<std::string>& restrictions_,
const std::string& solverType_,
const std::vector<std::string>& sourceNodes_,
const std::vector<std::string>& destinationNodes_,
const std::string& solutionTable_,
const std::map<std::string, std::string>& options_):
350 template<>
struct codec_traits<gpudb::SolveGraphRequest>
366 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
368 const std::vector<size_t> fo = rd->fieldOrder();
370 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
459 info(std::map<std::string, std::string>())
465 std::map<std::string, std::string>
info;
471 template<>
struct codec_traits<gpudb::SolveGraphResponse>
475 ::avro::encode(e, v.
result);
477 ::avro::encode(e, v.
info);
482 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
484 const std::vector<size_t> fo = rd->fieldOrder();
486 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
491 ::avro::decode(d, v.
result);
499 ::avro::decode(d, v.
info);
509 ::avro::decode(d, v.
result);
511 ::avro::decode(d, v.
info);
std::vector< std::string > weightsOnEdges
SolveGraphRequest()
Constructs a SolveGraphRequest object with default parameter values.
std::map< std::string, std::string > info
std::string solutionTable
A set of input parameters for const.
std::map< std::string, std::string > options
std::vector< float > resultPerDestinationNode
SolveGraphResponse()
Constructs a SolveGraphResponse object with default parameter values.
std::vector< std::string > restrictions
SolveGraphRequest(const std::string &graphName_, const std::vector< std::string > &weightsOnEdges_, const std::vector< std::string > &restrictions_, const std::string &solverType_, const std::vector< std::string > &sourceNodes_, const std::vector< std::string > &destinationNodes_, const std::string &solutionTable_, const std::map< std::string, std::string > &options_)
Constructs a SolveGraphRequest object with the specified parameters.
std::vector< std::string > destinationNodes
std::vector< std::string > sourceNodes
A set of output parameters for const.