Class GraphContext


  • public class GraphContext
    extends java.lang.Object
    A graph context contains two LineageEntity and the relationship between them.
    • Constructor Detail

      • GraphContext

        public GraphContext()
        Instantiates a new Graph context.
      • GraphContext

        public GraphContext​(java.lang.String relationshipType,
                            java.lang.String relationshipGuid,
                            LineageEntity fromVertex,
                            LineageEntity toVertex)
        Instantiates a new Graph context.
        Parameters:
        relationshipType - the relationship type
        relationshipGuid - the relationship guid
        fromVertex - the from vertex
        toVertex - the to vertex
    • Method Detail

      • getRelationshipType

        public java.lang.String getRelationshipType()
        Gets relationship type.
        Returns:
        the relationship type
      • setRelationshipType

        public void setRelationshipType​(java.lang.String relationshipType)
        Sets relationship type.
        Parameters:
        relationshipType - the relationship type
      • getRelationshipGuid

        public java.lang.String getRelationshipGuid()
        Gets relationship guid.
        Returns:
        the relationship guid
      • setRelationshipGuid

        public void setRelationshipGuid​(java.lang.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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object