tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stephen mallette (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TINKERPOP3-797) order() seems to only like List?
Date Wed, 05 Aug 2015 10:59:05 GMT

     [ https://issues.apache.org/jira/browse/TINKERPOP3-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

stephen mallette updated TINKERPOP3-797:
----------------------------------------
    Issue Type: Improvement  (was: New Feature)

> order() seems to only like List?
> --------------------------------
>
>                 Key: TINKERPOP3-797
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-797
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          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