我刚刚遇到了一个关于BluePrints应用程序接口的问题。我已经执行了以下Scala命令:
val dbBasename = "C:\\Users\\taatoal1\\tmp\\orientdb\\databases\\"
val dbpath = "test_ingest"
val (uname, pwd) = ("admin", "admin")
val graph = new OrientGraph(s"plocal:$dbpath", uname, pwd)
graph.addVertex("class:Employee")我得到了下面的错误
<console>:14: error: ambiguous reference to overloaded definition,
both method addVertex in class OrientBaseGraph of type (x$1: Any, x$2: <repeated...>[Object])com.tinkerpop.blueprints.impls.orient.OrientVertex
and method addVertex in class OrientBaseGraph of type (x$1: Any)com.tinkerpop.blueprints.impls.orient.OrientVertex
match argument types (String)
graph.addVertex("class:Employee")
^你知道我做错了什么吗?
提前感谢
发布于 2015-10-28 19:54:51
最后,我发现还有另一个版本的addVertex,它接受两个字符串作为参数:类名和集群名。
https://stackoverflow.com/questions/33350671
复制相似问题