chmx
chmx
I have encountered this problem before. I must start the project with java 1.8
> 我复现了你的数据,在我这并没有出现这个问题,你看是不是你在建立 schema信息的时候 方式不对 > > # schema 导入 > 我从hubble导入 > > ```groovy > graph.schema().propertyKey("ep0").asBoolean().ifNotExist().create(); > graph.schema().propertyKey("ep1").asBoolean().ifNotExist().create(); > graph.schema().propertyKey("vp0").asBoolean().ifNotExist().create(); > > graph.schema().vertexLabel("vl0").properties("vp0").nullableKeys("vp0").create(); > > graph.schema().edgeLabel("el0").sourceLabel("vl0").targetLabel("vl0").properties("ep0").ifNotExist().create(); > graph.schema().edgeLabel("el1").sourceLabel("vl0").targetLabel("vl0").properties("ep1").ifNotExist().create(); > >...
去重是用dedup(),比如 // 从各个年龄的人中选出一个代表 `g.V().hasLabel('person').dedup().by('age')` 多个属性分组: 《图数据库实战》中写到:group()是根据指定的by()调节器对结果进行分组,使用一个或者两个by()调节器对数据进行分组。第一个by()调节器指定分组的键,第二个by() 调节器如果存在,将指定值;如果不存在,则将传入数据收集为与分组键相关联的值列表。 直观上的感觉似乎不支持?试了Group().by("A","B")也是报错,我尝试多种gremlin ,也是没找到根据多个属性进行分组的方式(后续我在找找,有好消息同步)