new graph traversal step ?

59 views
Skip to first unread message

David

unread,
Feb 19, 2015, 2:37:28 PM2/19/15
to gremli...@googlegroups.com

Daniel Kuppitz

unread,
Feb 19, 2015, 2:53:00 PM2/19/15
to gremli...@googlegroups.com
Hi David,

you could write your own strategy, similar to PartitionGraphStrategy. E.g.:

s = GlobalFilterStrategy.build().filter("since", T.lt, 123).create()
sg = g.strategy(strategy)
sg.V().... // all elements filtered by 'since < 123'
strategy.setFilter("since", T.lt, System.currentTimeMillis())
sg.V().... // all elements filtered by 'since < now'

A new step wouldn't be sufficient IMO.

Cheers,
Daniel


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/cc081606-07b8-406e-b79b-d11526b93e1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David

unread,
Feb 20, 2015, 10:11:55 AM2/20/15
to gremli...@googlegroups.com
Thanks Daniel.  Let me give that a try.
Reply all
Reply to author
Forward
0 new messages