GPUdb C++ API  Version 7.2.3.0
gpudb::GetGraphEntitiesRequest Struct Reference

A set of parameters for GPUdb::getGraphEntities. More...

#include <gpudb/protocol/get_graph_entities.h>

Public Member Functions

 GetGraphEntitiesRequest ()
 Constructs a GetGraphEntitiesRequest object with default parameters. More...
 
 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. More...
 

Public Attributes

std::string graphName
 Name of the graph from which to retrieve entities. More...
 
int64_t offset
 Starting index of the entities to retrieve (0-based). More...
 
int64_t limit
 Number of entities to retrieve starting from offset. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::getGraphEntities.

Retrieves node or edge entities from an existing graph, with pagination support via offset and limit. Use GPUdb::showGraph to obtain the total number of nodes and edges.

Definition at line 21 of file get_graph_entities.h.

Constructor & Destructor Documentation

◆ GetGraphEntitiesRequest() [1/2]

gpudb::GetGraphEntitiesRequest::GetGraphEntitiesRequest ( )
inline

Constructs a GetGraphEntitiesRequest object with default parameters.

Definition at line 26 of file get_graph_entities.h.

◆ GetGraphEntitiesRequest() [2/2]

gpudb::GetGraphEntitiesRequest::GetGraphEntitiesRequest ( const std::string &  graphName_,
const int64_t  offset_,
const int64_t  limit_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a GetGraphEntitiesRequest object with the specified parameters.

Parameters
[in]graphName_Name of the graph from which to retrieve entities.
[in]offset_Starting index of the entities to retrieve (0-based). The default value is 0.
[in]limit_Number of entities to retrieve starting from offset_. A value of -1 returns all entities from the offset to the end. Note: the entitiesInt or entitiesString array size will be 2x this value for nodes (stride 2) or 4x for edges (stride 4). The default value is 10000.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 82 of file get_graph_entities.h.

Member Data Documentation

◆ graphName

std::string gpudb::GetGraphEntitiesRequest::graphName

Name of the graph from which to retrieve entities.

Definition at line 93 of file get_graph_entities.h.

◆ limit

int64_t gpudb::GetGraphEntitiesRequest::limit

Number of entities to retrieve starting from offset.

A value of -1 returns all entities from the offset to the end. Note: the entitiesInt or entitiesString array size will be 2x this value for nodes (stride 2) or 4x for edges (stride 4). The default value is 10000.

Definition at line 109 of file get_graph_entities.h.

◆ offset

int64_t gpudb::GetGraphEntitiesRequest::offset

Starting index of the entities to retrieve (0-based).

The default value is 0.

Definition at line 99 of file get_graph_entities.h.

◆ options

std::map<std::string, std::string> gpudb::GetGraphEntitiesRequest::options

Optional parameters.

The default value is an empty map.

Definition at line 135 of file get_graph_entities.h.


The documentation for this struct was generated from the following file: