6 #ifndef __SOLVE_GRAPH_H__ 7 #define __SOLVE_GRAPH_H__ 39 options(std::map<std::string, std::string>())
438 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_):
752 template<>
struct codec_traits<
gpudb::SolveGraphRequest>
768 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
770 const std::vector<size_t> fo = rd->fieldOrder();
772 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
842 info(std::map<std::string, std::string>())
861 std::map<std::string, std::string>
info;
867 template<>
struct codec_traits<
gpudb::SolveGraphResponse>
871 ::avro::encode(e, v.
result);
873 ::avro::encode(e, v.
info);
878 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
880 const std::vector<size_t> fo = rd->fieldOrder();
882 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
887 ::avro::decode(d, v.
result);
895 ::avro::decode(d, v.
info);
905 ::avro::decode(d, v.
result);
907 ::avro::decode(d, v.
info);
913 #endif // __SOLVE_GRAPH_H__ std::vector< std::string > weightsOnEdges
Additional weights to apply to the edges of an existing graph.
SolveGraphRequest()
Constructs a SolveGraphRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
std::string solutionTable
Name of the table to store the solution, in [ schema_name.
A set of parameters for GPUdb::solveGraph.
std::string graphName
Name of the graph resource to solve.
std::map< std::string, std::string > options
Additional parameters.
bool result
Indicates a successful solution on all servers.
std::vector< float > resultPerDestinationNode
Cost or Pagerank (based on solver type) for each destination node requested.
std::string solverType
The type of solver to use for the graph.
SolveGraphResponse()
Constructs a SolveGraphResponse object with default parameters.
std::vector< std::string > restrictions
Additional restrictions to apply to the nodes/edges of an existing graph.
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
It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for destination (target) nodes.
std::vector< std::string > sourceNodes
It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for source nodes.
A set of results returned by GPUdb::solveGraph.