groovy schema.propertyKey('name').Text().create() schema.propertyKey('age').Int().create() schema.vertexLabel('person').properties('name','age').create() schema.propertyKey('friendSince').Int().create() schema.edgeLabel('friend').properties('friendSince').connection('person','person').create() groovy schema.vertexLabel('person').index('byname').secondary().by('name').add() schema.edgeLabel('friend').index('byFriendSince').secondary().by('friendSince').add() groovy g.V().hasLabel('person').has('name', 'John').outE('friend').has('friendSince', P.gt(5)).inV() groovy schema.vertexLabel('person').partitionBy('name', 'age').clusterBy().create() schema.edgeLabel('friend').partitionBy('friendSince').create() dse.yaml: cassandra.yaml:


上一篇:
下一篇:
切换中文