NebulaGraph Java Client 5.0.0
|
Client to connect to NebulaGraph and send request to NebulaGraph. More...
Classes | |
class | Builder |
Public Member Functions | |
ResultSet | execute (String gql) throws IOErrorException |
synchronized ResultSet | execute (String gql, long requestTimeout) throws IOErrorException |
long | getSessionId () |
get the SessionId of the Client | |
String | getHost () |
get the NebulaGraph host address that this client is connecting to. | |
long | getConnectTimeoutMills () |
long | getRequestTimeoutMills () |
long | getScanParallel () |
synchronized boolean | ping (long timeoutMs) |
ping the NebulaGraph server | |
boolean | ping () |
synchronized void | close () |
release and close the connection with NebulaGraph server. | |
boolean | isClosed () |
get the Client status | |
ScanNodeResultIterator | scanNode (String graphName, String nodeType) |
ScanNodeResultIterator | scanNode (String graphName, String nodeType, List< String > returnProperties) |
ScanNodeResultIterator | scanNode (String graphName, String nodeType, List< String > returnProperties, int batchSize) |
scan the data of specific nodeType. | |
ScanNodeResultIterator | scanNode (String graphName, String nodeType, List< String > returnProperties, int part, int batchSize) |
scan the data of specific nodeType the result will contain primary key and specific return properties. | |
ScanNodeResultIterator | scanNode (String graphName, String nodeType, List< String > returnProperties, List< Integer > parts, int batchSize) |
scan the data of specific nodeType the result will contain primary key and specific return properties. | |
ScanEdgeResultIterator | scanEdge (String graphName, String edgeType) |
ScanEdgeResultIterator | scanEdge (String graphName, String edgeType, List< String > returnProperties) |
ScanEdgeResultIterator | scanEdge (String graphName, String edgeType, List< String > returnProperties, int batchSize) |
scan the data of specific edgeType the result will contain src node's primary key, dst node's primary key, edge's all property. | |
ScanEdgeResultIterator | scanEdge (String graphName, String edgeType, List< String > returnProperties, int part, int batchSize) |
scan the data of specific edgeType | |
ScanEdgeResultIterator | scanEdge (String graphName, String edgeType, List< String > returnProperties, List< Integer > parts, int batchSize) |
scan the data of specific edgeType | |
Static Public Member Functions | |
static Builder | builder (String addresses, String userName, String password) |
static Builder | builder (String addresses, String userName) |
Client to connect to NebulaGraph and send request to NebulaGraph.
Definition at line 39 of file NebulaClient.java.
|
static |
Definition at line 53 of file NebulaClient.java.
|
static |
Definition at line 49 of file NebulaClient.java.
synchronized void close | ( | ) |
release and close the connection with NebulaGraph server.
Definition at line 128 of file NebulaClient.java.
ResultSet execute | ( | String | gql | ) | throws IOErrorException |
Definition at line 65 of file NebulaClient.java.
synchronized ResultSet execute | ( | String | gql, |
long | requestTimeout | ||
) | throws IOErrorException |
Definition at line 69 of file NebulaClient.java.
long getConnectTimeoutMills | ( | ) |
Definition at line 92 of file NebulaClient.java.
String getHost | ( | ) |
get the NebulaGraph host address that this client is connecting to.
Definition at line 88 of file NebulaClient.java.
long getRequestTimeoutMills | ( | ) |
Definition at line 96 of file NebulaClient.java.
long getScanParallel | ( | ) |
Definition at line 100 of file NebulaClient.java.
long getSessionId | ( | ) |
boolean isClosed | ( | ) |
get the Client status
@reuturn true if client is closed
Definition at line 148 of file NebulaClient.java.
boolean ping | ( | ) |
Definition at line 121 of file NebulaClient.java.
synchronized boolean ping | ( | long | timeoutMs | ) |
ping the NebulaGraph server
timeoutMs | timeout, unit: ms |
Definition at line 111 of file NebulaClient.java.
ScanEdgeResultIterator scanEdge | ( | String | graphName, |
String | edgeType | ||
) |
Definition at line 340 of file NebulaClient.java.
ScanEdgeResultIterator scanEdge | ( | String | graphName, |
String | edgeType, | ||
List< String > | returnProperties | ||
) |
Definition at line 345 of file NebulaClient.java.
ScanEdgeResultIterator scanEdge | ( | String | graphName, |
String | edgeType, | ||
List< String > | returnProperties, | ||
int | batchSize | ||
) |
scan the data of specific edgeType the result will contain src node's primary key, dst node's primary key, edge's all property.
graphName | NebulaGraph name |
edgeType | edge type name |
returnProperties | the property list to scan, if list is empty, then the result will just contain src node's primary key and dst node's primary key |
batchSize | the data size for one request for one part, the ScanEdgeResultIterator.next() will return at most batchSize edge records |
Definition at line 370 of file NebulaClient.java.
ScanEdgeResultIterator scanEdge | ( | String | graphName, |
String | edgeType, | ||
List< String > | returnProperties, | ||
int | part, | ||
int | batchSize | ||
) |
scan the data of specific edgeType
graphName | NebulaGraph name |
edgeType | edge type name |
returnProperties | the property list to scan, if list is empty, then the result will just contain src node's primary key and dst node's primary key |
part | graph part id |
batchSize | the data size for one request for one part, the ScanEdgeResultIterator.next() will return at most batchSize edge records |
Definition at line 397 of file NebulaClient.java.
ScanEdgeResultIterator scanEdge | ( | String | graphName, |
String | edgeType, | ||
List< String > | returnProperties, | ||
List< Integer > | parts, | ||
int | batchSize | ||
) |
scan the data of specific edgeType
graphName | NebulaGraph name |
edgeType | edge type name |
returnProperties | the property list to scan, if list is empty, then the result will just contain src node's primary key and dst node's primary key |
parts | part list to scan |
batchSize | the data size for one request for one part, the ScanEdgeResultIterator.next() will return at most batchSize edge records |
Definition at line 429 of file NebulaClient.java.
ScanNodeResultIterator scanNode | ( | String | graphName, |
String | nodeType | ||
) |
Definition at line 188 of file NebulaClient.java.
ScanNodeResultIterator scanNode | ( | String | graphName, |
String | nodeType, | ||
List< String > | returnProperties | ||
) |
Definition at line 193 of file NebulaClient.java.
ScanNodeResultIterator scanNode | ( | String | graphName, |
String | nodeType, | ||
List< String > | returnProperties, | ||
int | batchSize | ||
) |
scan the data of specific nodeType.
the result will contain all property of nodeType.
graphName | NebulaGraph name |
nodeType | node type name |
returnProperties | the property list to scan, if list is empty, then the result just contain primary key. |
batchSize | the data size for one request for one part, the ScanNodeResultIterator.next() will return at most batchSize node records |
Definition at line 218 of file NebulaClient.java.
ScanNodeResultIterator scanNode | ( | String | graphName, |
String | nodeType, | ||
List< String > | returnProperties, | ||
int | part, | ||
int | batchSize | ||
) |
scan the data of specific nodeType the result will contain primary key and specific return properties.
graphName | NebulaGraph name |
nodeType | node type name |
returnProperties | the property list to scan, if list is empty, then the result just contain primary key. |
part | graph part id |
batchSize | the data size for one request for one part, the ScanNodeResultIterator.next() will return at most batchSize node records |
Definition at line 244 of file NebulaClient.java.
ScanNodeResultIterator scanNode | ( | String | graphName, |
String | nodeType, | ||
List< String > | returnProperties, | ||
List< Integer > | parts, | ||
int | batchSize | ||
) |
scan the data of specific nodeType the result will contain primary key and specific return properties.
graphName | NebulaGraph name |
nodeType | node type name |
returnProperties | the property list to scan, if list is empty, then the result just contain primary key. |
parts | list of graph part id |
batchSize | the data size for one request for one part, the ScanNodeResultIterator.next() will return at most batchSize node records |
Definition at line 268 of file NebulaClient.java.