【发布时间】:2017-12-19 01:59:00
【问题描述】:
我们有顶点可以存储各种作业及其类型和计数作为属性。我必须按状态及其计数进行分组。我尝试了以下适用于一个属性的查询(receiveCount)
g.V().hasLabel("Jobs").has("Type",within("A","B","C")).group().by("Type").by(fold().match(__.as("p").unfold().values("receiveCount").sum().as("totalRec")).select("totalRec")).next()
我想再提供 10 个属性,例如 successCount、FailedCount 等。有没有更好的方法来提供呢?
【问题讨论】:
标签: graph datastax-enterprise gremlin tinkerpop tinkerpop3