UQL Interface
Response response = connection.uql("n(as n1).e().n() as path return path{*}, n1{*} limit 1");
List<Path> paths = response.get(0).asPaths();
List<Node> nodes = response.alias("n1").asNodes();
Response
Properties
Properties |
Type |
Description |
status |
UStatus |
The status of UQL execution returned by Ultipa Server, either successful or failed |
statistic |
Statistic |
The statistics of UQL execution such as time cost and number of nodes/edges affected |
aliases |
List<Alias> |
A list of aliases and data types returned by 'RETURN' |
items |
Map<String, DataItem> |
The DataItem class corresoponding to each alias of the UQL result, returned by 'RETURN' |
exportData |
ExportData |
The exported data result |
insertNodesReply |
Ultipa.InsertNodesReply |
The result of node insertion |
insertEdgesReply |
Ultipa.InsertEdgesReply |
The result of node insertion |
Interface
Interface |
Description |
DataItem get(int index) |
Acquire DataItem by index |
DataItem alias(String name) |
Acquire DataItem by alias name |
DataItem
Each item returned is corresponding to a DataItem
class, use below interfaces to convert to a specific class.
Interface |
Description |
asNodes |
To nodes |
asEdges |
To edges |
asPaths |
To paths |
asTable |
To table |
asSchemas |
To schema |
asGraphs |
To graph |
asProperties |
To property |
asArray |
To array |
asAttrs |
To Attr |