select 只有来自 TRAVERSE outE(), inV() FROM ... 命令的顶点
select only vertex from TRAVERSE outE(), inV() FROM ... command
我有一个 SQL 命令,目前工作正常,如下所示
select from (traverse outE(), inV() from (select from Foo where name='root') while active=true) where @class='Foo'
但是我认为它不适用于我有许多不同类型的顶点连接在一起的情况。因此我需要用
之类的东西替换 where 条件
select from (traverse outE(), inV() from (select from Foo where name='root') while active=true) where @elementType='Vertex'
在Java API (OrientElement.getElementType())中是否有确定元素类型的特殊函数?
将其用作 where 条件:
where @this instanceof 'V'
我有一个 SQL 命令,目前工作正常,如下所示
select from (traverse outE(), inV() from (select from Foo where name='root') while active=true) where @class='Foo'
但是我认为它不适用于我有许多不同类型的顶点连接在一起的情况。因此我需要用
之类的东西替换 where 条件select from (traverse outE(), inV() from (select from Foo where name='root') while active=true) where @elementType='Vertex'
在Java API (OrientElement.getElementType())中是否有确定元素类型的特殊函数?
将其用作 where 条件:
where @this instanceof 'V'