6 #ifndef __MATCH_GRAPH_H__ 7 #define __MATCH_GRAPH_H__ 36 options(std::map<std::string, std::string>())
882 MatchGraphRequest(
const std::string& graphName_,
const std::vector<std::string>& samplePoints_,
const std::string& solveMethod_,
const std::string& solutionTable_,
const std::map<std::string, std::string>& options_):
1463 template<>
struct codec_traits<
gpudb::MatchGraphRequest>
1476 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1478 const std::vector<size_t> fo = rd->fieldOrder();
1480 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1535 info(std::map<std::string, std::string>())
1553 std::map<std::string, std::string>
info;
1559 template<>
struct codec_traits<
gpudb::MatchGraphResponse>
1563 ::avro::encode(e, v.
result);
1565 ::avro::encode(e, v.
info);
1570 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1572 const std::vector<size_t> fo = rd->fieldOrder();
1574 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1579 ::avro::decode(d, v.
result);
1587 ::avro::decode(d, v.
info);
1597 ::avro::decode(d, v.
result);
1599 ::avro::decode(d, v.
info);
1605 #endif // __MATCH_GRAPH_H__ std::string graphName
Name of the underlying geospatial graph resource to match to using samplePoints.
float matchScore
The mean square error calculation representing the map matching score.
std::string solutionTable
The name of the table used to store the results, in [ schema_name.
MatchGraphResponse()
Constructs a MatchGraphResponse object with default parameters.
A set of parameters for GPUdb::matchGraph.
std::map< std::string, std::string > options
Additional parameters.
std::string solveMethod
The type of solver to use for graph matching.
MatchGraphRequest(const std::string &graphName_, const std::vector< std::string > &samplePoints_, const std::string &solveMethod_, const std::string &solutionTable_, const std::map< std::string, std::string > &options_)
Constructs a MatchGraphRequest object with the specified parameters.
std::map< std::string, std::string > info
Additional information.
MatchGraphRequest()
Constructs a MatchGraphRequest object with default parameters.
bool result
Indicates a successful solution.
std::vector< std::string > samplePoints
Sample points used to match to an underlying geospatial graph.
A set of results returned by GPUdb::matchGraph.