Class LineageGraphQueryHelper


  • public class LineageGraphQueryHelper
    extends java.lang.Object
    • Constructor Detail

      • LineageGraphQueryHelper

        public LineageGraphQueryHelper​(GraphHelper graphHelper)
    • Method Detail

      • getLineageVerticesAndEdges

        public LineageVerticesAndEdges getLineageVerticesAndEdges​(org.apache.tinkerpop.gremlin.structure.Graph subGraph,
                                                                  boolean includeProcesses)
        Map a tinkerpop Graph object to an Open Lineage specific format.
        Parameters:
        subGraph - The graph to be mapped.
        Returns:
        The graph in an Open Lineage specific format.
      • getLineageVertices

        public java.util.Set<LineageVertex> getLineageVertices​(org.apache.tinkerpop.gremlin.structure.Graph subGraph)
      • getLineageVertices

        public java.util.Set<LineageVertex> getLineageVertices​(java.util.List<org.apache.tinkerpop.gremlin.structure.Vertex> vertexList)
        Convert a list of vertices from the janusgraph model to the list of vertices model used by egeria
        Parameters:
        vertexList - vertices to transform
        Returns:
        list of lineage vertices converted
      • getLineageEdges

        public java.util.Set<LineageEdge> getLineageEdges​(org.apache.tinkerpop.gremlin.structure.Graph subGraph)
      • abstractVertex

        public LineageVertex abstractVertex​(org.apache.tinkerpop.gremlin.structure.Vertex originalVertex)
        Map a Tinkerpop vertex to the Open Lineage format.
        Parameters:
        originalVertex - The vertex to be mapped.
        Returns:
        The vertex in the Open Lineage format.