6 #ifndef __GET_GRAPH_ENTITIES_H__ 7 #define __GET_GRAPH_ENTITIES_H__ 30 options(std::map<std::string, std::string>())
160 GetGraphEntitiesRequest(
const std::string& graphName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
271 template<>
struct codec_traits<
gpudb::GetGraphEntitiesRequest>
276 ::avro::encode(e, v.
offset);
277 ::avro::encode(e, v.
limit);
283 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
285 const std::vector<size_t> fo = rd->fieldOrder();
287 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
296 ::avro::decode(d, v.
offset);
300 ::avro::decode(d, v.
limit);
315 ::avro::decode(d, v.
offset);
316 ::avro::decode(d, v.
limit);
342 labels(std::vector<std::string>()),
343 info(std::map<std::string, std::string>())
438 std::map<std::string, std::string>
info;
444 template<>
struct codec_traits<
gpudb::GetGraphEntitiesResponse>
448 ::avro::encode(e, v.
result);
453 ::avro::encode(e, v.
labels);
454 ::avro::encode(e, v.
info);
459 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
461 const std::vector<size_t> fo = rd->fieldOrder();
463 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
468 ::avro::decode(d, v.
result);
488 ::avro::decode(d, v.
labels);
492 ::avro::decode(d, v.
info);
502 ::avro::decode(d, v.
result);
507 ::avro::decode(d, v.
labels);
508 ::avro::decode(d, v.
info);
514 #endif // __GET_GRAPH_ENTITIES_H__ GetGraphEntitiesRequest(const std::string &graphName_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
Constructs a GetGraphEntitiesRequest object with the specified parameters.
std::string graphName
Name of the graph from which to retrieve entities.
std::vector< double > entitiesDouble
Compact double-packed payload for WKT (geo/XY) graphs.
std::vector< std::string > entitiesString
Flat array of entity data for name-identifier (string) graphs only.
GetGraphEntitiesResponse()
Constructs a GetGraphEntitiesResponse object with default parameters.
std::map< std::string, std::string > info
Additional information map.
std::vector< float > entitiesWeight
Per-edge weight values, populated only when the request option 'include_weights' is 'true' and option...
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > labels
Array of distinct label strings.
GetGraphEntitiesRequest()
Constructs a GetGraphEntitiesRequest object with default parameters.
std::vector< int64_t > entitiesInt
Flat array of entity data for integer-identifier graphs with a repeating stride.
bool result
Indicates a successful retrieval.
int64_t offset
Starting index of the entities to retrieve (0-based).
int64_t limit
Number of entities to retrieve starting from offset.
A set of parameters for GPUdb::getGraphEntities.
A set of results returned by GPUdb::getGraphEntities.