Package com.graphdbapi.values.util
Class ConvertUtil
- java.lang.Object
-
- com.graphdbapi.values.util.ConvertUtil
-
public class ConvertUtil extends Object
Vertex和Edge转换成CypherNode
和CypherRelationship
工具类
-
-
Constructor Summary
Constructors Constructor Description ConvertUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CypherNode
nodeValue(GraphSchema schema, Vertex vertex)
将Vertex对象转换成CypherNode
对象static CypherRelationship
relationshipValue(GraphSchema schema, Edge edge)
将Edge对象转换成CypherRelationship
对象static CypherMap
toMapValue(Map<String,Object> properties)
将Map对象转换成CypherMap
对象
-
-
-
Method Detail
-
nodeValue
public static CypherNode nodeValue(GraphSchema schema, Vertex vertex)
将Vertex对象转换成CypherNode
对象- Parameters:
schema
- metavertex
- 点信息- Returns:
CypherNode
-
relationshipValue
public static CypherRelationship relationshipValue(GraphSchema schema, Edge edge)
将Edge对象转换成CypherRelationship
对象- Parameters:
schema
- metaedge
- 边信息- Returns:
CypherRelationship
-
-