tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marko A. Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TINKERPOP3-797) order() seems to only like List?
Date Mon, 03 Aug 2015 22:01:04 GMT
Marko A. Rodriguez created TINKERPOP3-797:
---------------------------------------------

             Summary: order() seems to only like List?
                 Key: TINKERPOP3-797
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-797
             Project: TinkerPop 3
          Issue Type: New Feature
          Components: process
    Affects Versions: 3.0.0-incubating
            Reporter: Marko A. Rodriguez
            Assignee: Marko A. Rodriguez


{code}
g.V().hasLabel('movie').
   group().
    by(values('year').map {(it.get() - 1900).toString()[-2..-2] + "0"}).
    by().
    by(order(local).by(inE('rated').values('stars'),decr).
         limit(1).values('name')).next()
org.apache.tinkerpop.gremlin.process.traversal.step.util.BulkSet cannot be cast to java.util.List
Display stack trace? [yN]
{code}

I have to do it like this:

{code}
g.V().hasLabel('movie').
   group().
    by(values('year').map {(it.get() - 1900).toString()[-2..-2] + "0"}).
    by().
    by(unfold().order().by(inE('rated').values('stars'),decr).
         limit(1).values('name')).next()
org.apache.tinkerpop.gremlin.process.traversal.step.util.BulkSet cannot be cast to java.util.List
Display stack trace? [yN]
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message