【发布时间】:2013-09-16 05:59:44
【问题描述】:
我想创建一个没有重复属性的顶点,例如,名称
我关注了https://github.com/thinkaurelius/titan/wiki/Vertex-Centric-Indices的页面
但是,它对我不起作用
gremlin>g.makeType().name('dom').unique(OUT).dataType(String.class).indexed(Vertex.class).makePropertyKey()
==>v[36028797018965714]
gremlin> u2 = g.addVertex([dom:'def.com'])
==>v[480020]
gremlin> u2 = g.addVertex([dom:'def.com'])
==>v[480024]
我可以只为同一个 dom 属性创建一个顶点吗?
提前致谢
【问题讨论】:
标签: unique vertex gremlin titan