OrientDB——有没有办法找出遍历了哪条边?
OrientDB -- is there a way to find out which edge was traversed?
为此,我 researching/looking 左右摇摆,
但是,找不到任何线索。
我认为这是一个限制,但是,我想确定一下。
场景(1):
在这种情况下,我已经明确告知我想遍历哪条边。因此,我知道谁在参加 VPN-101 活动。
orientdb {db=event}> select firstname from (traverse in('people_attending_event') from (select from Event where name='VPN-101')) where @class='People';
0 |null |Mohammed
1 |null |Sed
2 |null |Fob
场景(2):
在这种情况下,我想知道哪些顶点与 VPN-101 顶点相关联,因此我在这里使用了 _in()。输出为我提供了 3 个名称,但是,有没有办法知道遍历了哪些特定边以获得输出?
在这个例子中,我只 selected firstname,但是即使我执行 select *,它确实没有告诉我遍历了哪些边以获得输出,它只是为我提供了与顶点关联的属性。
orientdb {db=event}> select firstname from (traverse in() from (select from Event where name='VPN-101')) where @class='People';
0 |null |Mohammed
1 |null |Sed
2 |null |Fob
我能做些什么来知道我在找什么吗?
我感谢任何见解或帮助。
谢谢。
Returns TRAVERSE 命令的最后 3 个遍历边:
SELECT traversedEdge(-1, 3) FROM ( TRAVERSE outE(), inV() from #34:3232 WHILE $depth <= 10 )
有关详细信息,请查看文档:http://orientdb.com/docs/last/SQL-Functions.html#traversededge。
为此,我 researching/looking 左右摇摆, 但是,找不到任何线索。 我认为这是一个限制,但是,我想确定一下。
场景(1): 在这种情况下,我已经明确告知我想遍历哪条边。因此,我知道谁在参加 VPN-101 活动。
orientdb {db=event}> select firstname from (traverse in('people_attending_event') from (select from Event where name='VPN-101')) where @class='People';
0 |null |Mohammed
1 |null |Sed
2 |null |Fob
场景(2): 在这种情况下,我想知道哪些顶点与 VPN-101 顶点相关联,因此我在这里使用了 _in()。输出为我提供了 3 个名称,但是,有没有办法知道遍历了哪些特定边以获得输出? 在这个例子中,我只 selected firstname,但是即使我执行 select *,它确实没有告诉我遍历了哪些边以获得输出,它只是为我提供了与顶点关联的属性。
orientdb {db=event}> select firstname from (traverse in() from (select from Event where name='VPN-101')) where @class='People';
0 |null |Mohammed
1 |null |Sed
2 |null |Fob
我能做些什么来知道我在找什么吗? 我感谢任何见解或帮助。 谢谢。
Returns TRAVERSE 命令的最后 3 个遍历边:
SELECT traversedEdge(-1, 3) FROM ( TRAVERSE outE(), inV() from #34:3232 WHILE $depth <= 10 )
有关详细信息,请查看文档:http://orientdb.com/docs/last/SQL-Functions.html#traversededge。