6 #ifndef __QUERY_GRAPH_H__
7 #define __QUERY_GRAPH_H__
57 queries(std::vector<std::string>()),
61 options(std::map<std::string, std::string>())
201 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_):
222 template<>
struct codec_traits<gpudb::QueryGraphRequest>
230 ::avro::encode(e, v.
rings);
236 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
238 const std::vector<size_t> fo = rd->fieldOrder();
240 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
261 ::avro::decode(d, v.
rings);
279 ::avro::decode(d, v.
rings);
338 info(std::map<std::string, std::string>())
346 std::map<std::string, std::string>
info;
352 template<>
struct codec_traits<gpudb::QueryGraphResponse>
356 ::avro::encode(e, v.
result);
360 ::avro::encode(e, v.
info);
365 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
367 const std::vector<size_t> fo = rd->fieldOrder();
369 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
374 ::avro::decode(d, v.
result);
390 ::avro::decode(d, v.
info);
400 ::avro::decode(d, v.
result);
404 ::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