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 CypherNodenodeValue(GraphSchema schema, Vertex vertex)将Vertex对象转换成CypherNode对象static CypherRelationshiprelationshipValue(GraphSchema schema, Edge edge)将Edge对象转换成CypherRelationship对象static CypherMaptoMapValue(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
-
-