6 #ifndef __MATCH_GRAPH_H__ 7 #define __MATCH_GRAPH_H__ 36 options(std::map<std::string, std::string>())
900 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_):
1493 template<>
struct codec_traits<
gpudb::MatchGraphRequest>
1506 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1508 const std::vector<size_t> fo = rd->fieldOrder();
1510 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1565 info(std::map<std::string, std::string>())
1583 std::map<std::string, std::string>
info;
1589 template<>
struct codec_traits<
gpudb::MatchGraphResponse>
1593 ::avro::encode(e, v.
result);
1595 ::avro::encode(e, v.
info);
1600 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1602 const std::vector<size_t> fo = rd->fieldOrder();
1604 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1609 ::avro::decode(d, v.
result);
1617 ::avro::decode(d, v.
info);
1627 ::avro::decode(d, v.
result);
1629 ::avro::decode(d, v.
info);
1635 #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.