Class GraphContext
java.lang.Object
org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext
A graph context contains two LineageEntity and the relationship between them.
-
Constructor Summary
ConstructorDescriptionInstantiates a new Graph context.GraphContext
(String relationshipType, String relationshipGuid, LineageEntity fromVertex, LineageEntity toVertex) Instantiates a new Graph context. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets from vertex.Gets relationship guid.Gets relationship type.Gets to vertex.int
hashCode()
void
setFromVertex
(LineageEntity fromVertex) Sets from vertex.void
setRelationshipGuid
(String relationshipGuid) Sets relationship guid.void
setRelationshipType
(String relationshipType) Sets relationship type.void
setToVertex
(LineageEntity toVertex) Sets to vertex.toString()
-
Constructor Details
-
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 Details
-
getRelationshipType
Gets relationship type.- Returns:
- the relationship type
-
setRelationshipType
Sets relationship type.- Parameters:
relationshipType
- the relationship type
-
getRelationshipGuid
Gets relationship guid.- Returns:
- the relationship guid
-
setRelationshipGuid
Sets relationship guid.- Parameters:
relationshipGuid
- the relationship guid
-
getFromVertex
Gets from vertex.- Returns:
- the from vertex
-
setFromVertex
Sets from vertex.- Parameters:
fromVertex
- the from vertex
-
getToVertex
Gets to vertex.- Returns:
- the to vertex
-
setToVertex
Sets to vertex.- Parameters:
toVertex
- the to vertex
-
equals
-
hashCode
public int hashCode() -
toString
-