Class LineageGraphConnectorHelper


  • public class LineageGraphConnectorHelper
    extends Object
    • Constructor Detail

      • LineageGraphConnectorHelper

        public LineageGraphConnectorHelper​(GraphFactory graphFactory,
                                           boolean supportingTransactions)
    • Method Detail

      • ultimateSource

        public Optional<LineageVerticesAndEdges> ultimateSource​(String guid)
        Returns the ultimate source graph of queried entity, which can be a column or a table. In case of tables, relationships of type LineageMapping will be traversed backwards, all the way to the source. If no vertices are found, than DataFlow relationships are used for traversal. In case of columns, DataFlow relationships are directly used
        Parameters:
        guid - queried entity
        Returns:
        graph in an Open Lineage specific format
      • ultimateDestination

        public Optional<LineageVerticesAndEdges> ultimateDestination​(String guid)
        Returns the ultimate destination graph of queried entity, which can be a column or a table. In case of tables, relationships of type LineageMapping will be traversed forwards, all the way to the destination. If no vertices are found, than DataFlow relationships are used for traversal. In case of columns, DataFlow relationships are directly used
        Parameters:
        guid - queried entity
        Returns:
        graph in an Open Lineage specific format
      • endToEnd

        public Optional<LineageVerticesAndEdges> endToEnd​(String guid,
                                                          boolean includeProcesses)
        Returns the end to end graph of queried entity, which can be a column or a table. In case of tables, relationships of type LineageMapping will be traversed backwards and forwards, all the way to the source and the destination, respectively. If no vertices are found, than DataFlow relationships are used for traversal. In case of columns, DataFlow relationships are directly used
        Parameters:
        guid - queried entity
        includeProcesses - include processes
        Returns:
        graph in an Open Lineage specific format