Class OpenLineageService


  • @Service
    public class OpenLineageService
    extends Object
    This class responsibility is to interact with Open Lineage Services(OLS), process the returned response and return it in a format understood by view
    • Constructor Detail

      • OpenLineageService

        @Autowired
        public OpenLineageService​(OpenLineageClient openLineageClient,
                                  LineageGraphDisplayService lineageGraphDisplayService)
        Parameters:
        openLineageClient - client to connect to open lineage services
        lineageGraphDisplayService - the rules for display
    • Method Detail

      • getUltimateSource

        public Graph getUltimateSource​(String userId,
                                       String guid,
                                       boolean includeProcesses)
        Parameters:
        userId - id of the user triggering the request
        guid - unique identifier if the asset
        includeProcesses - if true includes processes in the response
        Returns:
        map of nodes and edges describing the ultimate sources for the asset
      • getEndToEndLineage

        public Graph getEndToEndLineage​(String userId,
                                        String guid,
                                        boolean includeProcesses)
        Parameters:
        userId - id of the user triggering the request
        guid - unique identifier if the asset
        includeProcesses - if true includes processes in the response
        Returns:
        map of nodes and edges describing the end to end flow
      • getUltimateDestination

        public Graph getUltimateDestination​(String userId,
                                            String guid,
                                            boolean includeProcesses)
        Parameters:
        userId - id of the user triggering the request
        guid - unique identifier if the asset
        includeProcesses - if true includes processes in the response
        Returns:
        map of nodes and edges describing the ultimate destinations of the asset
      • getVerticalLineage

        public Graph getVerticalLineage​(String userId,
                                        String guid,
                                        boolean includeProcesses)
        Parameters:
        userId - id of the user triggering the request
        guid - unique identifier if the asset
        includeProcesses - if true includes processes in the response
        Returns:
        map of nodes and edges describing the glossary terms linked to the asset
      • getEntityDetails

        public LineageVertex getEntityDetails​(String userId,
                                              String guid)
        Gets node details.
        Parameters:
        userId - the user id
        guid - the guid
        Returns:
        the node details
      • getSourceAndDestination

        public Graph getSourceAndDestination​(String userId,
                                             String guid,
                                             boolean includeProcesses)
        Parameters:
        userId - id of the user triggering the request
        guid - unique identifier if the asset
        includeProcesses - if true includes processes in the response
        Returns:
        map of nodes and edges describing the ultimate sources and destinations of the asset