getGraphEntities
public GetGraphEntitiesResponse getGraphEntities(GetGraphEntitiesRequest request) throws GPUdbException Retrieves node or edge entities from an existing graph, with pagination support via offset and limit. UseshowGraphto obtain the total number of nodes and edges.Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.getGraphEntities
public GetGraphEntitiesResponse getGraphEntities(String graphName, long offset, long limit, Map<String, String> options) throws GPUdbException Retrieves node or edge entities from an existing graph, with pagination support via offset and limit. UseshowGraphto obtain the total number of nodes and edges.Parameters:graphName- Name of the graph from which to retrieve entities.offset- Starting index of the entities to retrieve (0-based). The default value is 0.limit- Number of entities to retrieve starting fromoffset. A value of -1 returns all entities from the offset to the end. Note: theentitiesIntorentitiesStringarray size will be 2x this value for nodes (stride 2) or 4x for edges (stride 4). The default value is 10000.options- Optional parameters.ENTITY_TYPE: The type of entity to retrieve. Supported values:The default value isEDGE.SERVER_ID: Indicates which graph server to send the request to. Required when the graph is distributed across multiple servers. The default value is ‘0’.CONCISE_EDGE_CONNECTIVITY: When true, edges are emitted in a compact connectivity form regardless of the graph’s identifier type:entitiesIntcontains stride-4 records [edge_id, node1_index, node2_index, edge_label_index] where node1_index/node2_index are 0-based positions into the node array (obtained from a node-entity call on the same graph). When requesting nodes with this option, the response includes tombstoned (deleted) slots in order to keep position indices stable so edge indices resolve correctly; deleted slots carry id=0 for integer graphs or an empty identifier for string/WKT graphs. For paginated node calls, subtractoffsetfrom an edge endpoint index to locate it within the returned page. Supported values:TRUE: Compact integer connectivity for edges; deleted node slots included in node output.FALSE: Default: edges emit node identifiers (int/string/WKT) matching the graph; deleted nodes are skipped.
FALSE.INCLUDE_WEIGHTS: When true andoptions entityTypeis ‘edge’, the responseentitiesWeightarray is populated with one float weight per emitted edge (aligned 1:1 with the edge records inentitiesIntorentitiesString). Empty when the graph has no weights component or when requesting nodes. Supported values:TRUE: PopulateentitiesWeightwith per-edge weights (edge requests only).FALSE: Default:entitiesWeightis empty.
FALSE.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.