AmbitiousHERO
AmbitiousHERO
好 谢谢您的回复
在studio进行查询的时候报这个错误java.lang.String cannot be cast to java.lang.Number 说明在math括号里面有问题,您这个方式是不是在+号两侧有空格。 这种math(‘10+10’)就没问题 那可能就是我这边源码中有问题
我age属性之前是定义为asInt()它计算不了,我改为了asLong就能计算了,不知道为啥
scheam的内容: schema.propertyKey("idcard").asText().ifNotExist().create(); schema.propertyKey("age").asInt().ifNotExist().create(); schema.propertyKey("name").asText().ifNotExist().create(); schema.propertyKey("gender").asText().ifNotExist().create(); schema.propertyKey("place").asText().ifNotExist().create(); schema.propertyKey("方式").asText().ifNotExist().create(); schema.propertyKey("班次").asText().ifNotExist().create(); schema.propertyKey("时间").asText().ifNotExist().create(); schema.edgeLabel("父亲").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("母亲").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("儿子").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("女儿").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("朋友").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("同事").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("弟弟").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("夫妻").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema.edgeLabel("亲戚").sourceLabel("people").targetLabel("people").properties().ifNotExist().create(); schema1的内容: schema.propertyKey("normal_name").asText().ifNotExist().create(); schema.propertyKey("infect_name").asText().ifNotExist().create(); schema.propertyKey("second_name").asText().ifNotExist().create(); schema.propertyKey("age").asInt().ifNotExist().create(); schema.propertyKey("gender").asText().ifNotExist().create(); schema.propertyKey("time").asText().ifNotExist().create(); schema.propertyKey("train_name").asText().ifNotExist().create(); schema.propertyKey("place_name").asText().ifNotExist().create(); schema.propertyKey("address").asText().ifNotExist().create(); schema.propertyKey("arrive_time").asText().ifNotExist().create(); schema.propertyKey("leave_time").asText().ifNotExist().create();...