6 #ifndef __QUERY_GRAPH_H__
7 #define __QUERY_GRAPH_H__
52 queries(std::vector<std::string>()),
56 options(std::map<std::string, std::string>())
205 QueryGraphRequest(
const std::string& graphName_,
const std::vector<std::string>& queries_,
const std::vector<std::string>& restrictions_,
const std::string& adjacencyTable_,
const int32_t rings_,
const std::map<std::string, std::string>& options_):
226 template<>
struct codec_traits<gpudb::QueryGraphRequest>
234 ::avro::encode(e, v.
rings);
240 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
242 const std::vector<size_t> fo = rd->fieldOrder();
244 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
265 ::avro::decode(d, v.
rings);
283 ::avro::decode(d, v.
rings);
337 info(std::map<std::string, std::string>())
345 std::map<std::string, std::string>
info;
351 template<>
struct codec_traits<gpudb::QueryGraphResponse>
355 ::avro::encode(e, v.
result);
359 ::avro::encode(e, v.
info);
364 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
366 const std::vector<size_t> fo = rd->fieldOrder();
368 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
373 ::avro::decode(d, v.
result);
389 ::avro::decode(d, v.
info);
399 ::avro::decode(d, v.
result);
403 ::avro::decode(d, v.
info);
QueryGraphResponse()
Constructs a QueryGraphResponse object with default parameter values.
std::vector< std::string > restrictions
std::vector< std::string > adjacencyListWktArray
std::vector< std::string > queries
std::vector< std::string > adjacencyListStringArray
QueryGraphRequest()
Constructs a QueryGraphRequest object with default parameter values.
std::string adjacencyTable
std::map< std::string, std::string > info
A set of output parameters for const.
QueryGraphRequest(const std::string &graphName_, const std::vector< std::string > &queries_, const std::vector< std::string > &restrictions_, const std::string &adjacencyTable_, const int32_t rings_, const std::map< std::string, std::string > &options_)
Constructs a QueryGraphRequest object with the specified parameters.
std::map< std::string, std::string > options
A set of input parameters for const.
std::vector< int64_t > adjacencyListIntArray