Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
2.2.10中Orientdb getVertexByKey()不推荐方法的替代方法?_Orientdb_Orientdb 2.1_Orientdb2.2 - Fatal编程技术网

2.2.10中Orientdb getVertexByKey()不推荐方法的替代方法?

2.2.10中Orientdb getVertexByKey()不推荐方法的替代方法?,orientdb,orientdb-2.1,orientdb2.2,Orientdb,Orientdb 2.1,Orientdb2.2,我正在使用Orientdb 2.2.10 我想要什么? 我想从我的Graphdb中获取一个顶点,该顶点具有uId=类类型的'ram' Mygraphdb使用唯一键“uid”编制索引。 我是如何解决的? 我使用此函数获取顶点:图形。getVertexByKey(键) 我得到了想要的结果,但是我的IDE(eclipse)将其显示为不推荐的方法 2.2.10中是否有其他替代方案 如果没有,使用它是否安全 谢谢您可以使用: Iterable<Vertex> it=g.getVertice

我正在使用Orientdb 2.2.10

我想要什么?

我想从我的Graphdb中获取一个顶点,该顶点具有uId=类类型的'ram'

Mygraphdb使用唯一键“uid”编制索引。

我是如何解决的?

  • 我使用此函数获取顶点:图形。getVertexByKey(键)
  • 得到了想要的结果,但是我的IDE(eclipse)将其显示为不推荐的方法
2.2.10中是否有其他替代方案

如果没有,使用它是否安全

谢谢

您可以使用:

Iterable<Vertex> it=g.getVertices("uid", "ram");
Iterable it=g.getVertices(“uid”、“ram”);
希望能有帮助

问候。

您可以使用:

Iterable<Vertex> it=g.getVertices("uid", "ram");
Iterable it=g.getVertices(“uid”、“ram”);
希望能有帮助


问候。

谢谢您的回答。。!任何直接返回顶点而不是Iterable的方法?谢谢回答。。!有没有直接返回顶点而不是Iterable的方法?