note that the traverser will go down all traversals in options if the pickToken matches
if you need if/then/else semantic, use choose
instead
traverser will pick first option that has a matching pickToken *
special case of choose step if there's only two options - basically an if/else condition for traversals
special case of choose step if there's only two options - basically an if/else condition for traversals
you might think that predicate should be GremlinScala[End, _] => GremlinScala[Boolean, _]
,
but that's not how tp3 works: e.g. .value(Age).is(30)
returns 30
, not true
Existing users please note: since 3.2.4.8 the filter
step changed it's signature and now
takes a traversal: filter(predicate: GremlinScala[End, _] ⇒ GremlinScala[_, _])
.
Existing users please note: since 3.2.4.8 the filter
step changed it's signature and now
takes a traversal: filter(predicate: GremlinScala[End, _] ⇒ GremlinScala[_, _])
. The old
filter(predicate: End ⇒ Boolean)
is now called filterOnEnd
, in case you still need it.
This change might affect your for comprehensions.
The reasoning for the change is that it's discouraged to use lambdas (see
http://tinkerpop.apache.org/docs/current/reference/#a-note-on-lambdas). Instead we are now creating
anonymous traversals, which can be optimised by the driver, sent over the wire as gremlin binary
for remote execution etc.
You might think that predicate should be GremlinScala[End, _] => GremlinScala[Boolean, _]
,
but that's not how tp3 works: e.g. .value(Age).is(30)
returns 30
, not true
Modify the sack with the current End type.
Modify the sack with the current End type. TODO: carry SackType as class type parameter (both ScalaGraph and GremlinScala) [SideEffect]
Take value out of the sack.
Take value out of the sack. TODO: carry SackType as class type parameter (both ScalaGraph and GremlinScala)
used in scala for comprehensions