convert gremlin to java

閲覧: 29 回
最初の未読メッセージにスキップ

parvat

未読、
2016/07/20 5:29:582016/07/20
To: OrientDB
this is my gremlin query i want to convert to java equivalent

b=g.V("name","test").out('BELONGS').in('HAS').as('x').in('HAS').in('HAS').filter{it.name=='pavani'}.path.toList()

alessand...@gmail.com

未読、
2016/07/20 6:27:322016/07/20
To: OrientDB
Hi,
could you post you structure ?

Best regards,
Alessandro

parvat

未読、
2016/07/20 6:30:312016/07/20
To: OrientDB
Can you tell me how we can capture nodes while filtering

alessand...@gmail.com

未読、
2016/07/20 6:56:012016/07/20
To: OrientDB
What do you mean with how we can capture nodes while filtering ?

parvat

未読、
2016/07/20 7:00:422016/07/20
To: OrientDB
Yes

alessand...@gmail.com

未読、
2016/07/20 9:38:102016/07/20
To: OrientDB
With OSQL you can use this query

SELECT dijkstra($a, $b,"","BOTH")
LET $a
= (select from V where name = "test"),
    $b
= (select from V where name = "pavani")

Hope it helps.
全員に返信
投稿者に返信
転送
新着メール 0 件