6 #ifndef __QUERY_GRAPH_H__ 7 #define __QUERY_GRAPH_H__ 45 queries(std::vector<std::string>()),
49 options(std::map<std::string, std::string>())
222 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_):
377 template<>
struct codec_traits<
gpudb::QueryGraphRequest>
385 ::avro::encode(e, v.
rings);
391 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
393 const std::vector<size_t> fo = rd->fieldOrder();
395 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
416 ::avro::decode(d, v.
rings);
434 ::avro::decode(d, v.
rings);
457 info(std::map<std::string, std::string>())
493 std::map<std::string, std::string>
info;
499 template<>
struct codec_traits<
gpudb::QueryGraphResponse>
503 ::avro::encode(e, v.
result);
507 ::avro::encode(e, v.
info);
512 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
514 const std::vector<size_t> fo = rd->fieldOrder();
516 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
521 ::avro::decode(d, v.
result);
537 ::avro::decode(d, v.
info);
547 ::avro::decode(d, v.
result);
551 ::avro::decode(d, v.
info);
557 #endif // __QUERY_GRAPH_H__ QueryGraphResponse()
Constructs a QueryGraphResponse object with default parameters.
std::vector< std::string > restrictions
Additional restrictions to apply to the nodes/edges of an existing graph.
std::vector< std::string > adjacencyListWktArray
The adjacency entity WKTPOINT or WKTLINE ID: either edge IDs per node requested (if using QUERY_EDGE_...
std::vector< std::string > queries
Nodes or edges to be queried specified using query identifiers.
std::vector< std::string > adjacencyListStringArray
The adjacency entity string ID: either edge IDs per node requested (if using QUERY_EDGE_NAME or QUERY...
QueryGraphRequest()
Constructs a QueryGraphRequest object with default parameters.
std::string adjacencyTable
Name of the table to store the resulting adjacencies, in [ schema_name. ]table_name format,...
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::queryGraph.
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.
int32_t rings
Sets the number of rings around the node to query for adjacency, with '1' being the edges directly at...
std::string graphName
Name of the graph resource to query.
std::map< std::string, std::string > options
Additional parameters.
A set of parameters for GPUdb::queryGraph.
bool result
Indicates a successful query.
std::vector< int64_t > adjacencyListIntArray
The adjacency entity integer ID: either edge IDs per node requested (if using QUERY_EDGE_ID or QUERY_...