6 #ifndef __GET_GRAPH_ENTITIES_H__ 7 #define __GET_GRAPH_ENTITIES_H__ 30 options(std::map<std::string, std::string>())
82 GetGraphEntitiesRequest(
const std::string& graphName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
141 template<>
struct codec_traits<
gpudb::GetGraphEntitiesRequest>
146 ::avro::encode(e, v.
offset);
147 ::avro::encode(e, v.
limit);
153 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
155 const std::vector<size_t> fo = rd->fieldOrder();
157 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
166 ::avro::decode(d, v.
offset);
170 ::avro::decode(d, v.
limit);
185 ::avro::decode(d, v.
offset);
186 ::avro::decode(d, v.
limit);
210 labels(std::vector<std::string>()),
211 info(std::map<std::string, std::string>())
261 std::map<std::string, std::string>
info;
267 template<>
struct codec_traits<
gpudb::GetGraphEntitiesResponse>
271 ::avro::encode(e, v.
result);
274 ::avro::encode(e, v.
labels);
275 ::avro::encode(e, v.
info);
280 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
282 const std::vector<size_t> fo = rd->fieldOrder();
284 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
289 ::avro::decode(d, v.
result);
301 ::avro::decode(d, v.
labels);
305 ::avro::decode(d, v.
info);
315 ::avro::decode(d, v.
result);
318 ::avro::decode(d, v.
labels);
319 ::avro::decode(d, v.
info);
325 #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< std::string > entitiesString
Flat array of entity data for name-identifier or WKT-identifier (geo/XY) graphs with a repeating stri...
GetGraphEntitiesResponse()
Constructs a GetGraphEntitiesResponse object with default parameters.
std::map< std::string, std::string > info
Additional information map.
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.