Class GraphContext
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext
-
public class GraphContext extends Object
A graph context contains two LineageEntity and the relationship between them.
-
-
Constructor Summary
Constructors Constructor Description GraphContext()Instantiates a new Graph context.GraphContext(String relationshipType, String relationshipGuid, LineageEntity fromVertex, LineageEntity toVertex)Instantiates a new Graph context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LineageEntitygetFromVertex()Gets from vertex.StringgetRelationshipGuid()Gets relationship guid.StringgetRelationshipType()Gets relationship type.LineageEntitygetToVertex()Gets to vertex.inthashCode()voidsetFromVertex(LineageEntity fromVertex)Sets from vertex.voidsetRelationshipGuid(String relationshipGuid)Sets relationship guid.voidsetRelationshipType(String relationshipType)Sets relationship type.voidsetToVertex(LineageEntity toVertex)Sets to vertex.StringtoString()
-
-
-
Constructor Detail
-
GraphContext
public GraphContext()
Instantiates a new Graph context.
-
GraphContext
public GraphContext(String relationshipType, String relationshipGuid, LineageEntity fromVertex, LineageEntity toVertex)
Instantiates a new Graph context.- Parameters:
relationshipType- the relationship typerelationshipGuid- the relationship guidfromVertex- the from vertextoVertex- the to vertex
-
-
Method Detail
-
getRelationshipType
public String getRelationshipType()
Gets relationship type.- Returns:
- the relationship type
-
setRelationshipType
public void setRelationshipType(String relationshipType)
Sets relationship type.- Parameters:
relationshipType- the relationship type
-
getRelationshipGuid
public String getRelationshipGuid()
Gets relationship guid.- Returns:
- the relationship guid
-
setRelationshipGuid
public void setRelationshipGuid(String relationshipGuid)
Sets relationship guid.- Parameters:
relationshipGuid- the relationship guid
-
getFromVertex
public LineageEntity getFromVertex()
Gets from vertex.- Returns:
- the from vertex
-
setFromVertex
public void setFromVertex(LineageEntity fromVertex)
Sets from vertex.- Parameters:
fromVertex- the from vertex
-
getToVertex
public LineageEntity getToVertex()
Gets to vertex.- Returns:
- the to vertex
-
setToVertex
public void setToVertex(LineageEntity toVertex)
Sets to vertex.- Parameters:
toVertex- the to vertex
-
-