首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Blueprints应用编程接口、addVertex的问题

Blueprints应用编程接口、addVertex的问题
EN

Stack Overflow用户
提问于 2015-10-27 00:20:49
回答 1查看 56关注 0票数 1

我刚刚遇到了一个关于BluePrints应用程序接口的问题。我已经执行了以下Scala命令:

代码语言:javascript
复制
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")

我得到了下面的错误

代码语言:javascript
复制
<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")
                    ^

你知道我做错了什么吗?

提前感谢

EN

回答 1

Stack Overflow用户

发布于 2015-10-28 19:54:51

最后,我发现还有另一个版本的addVertex,它接受两个字符串作为参数:类名和集群名。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33350671

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档