Class OpenLineageController


  • @RestController
    @RequestMapping("/api/lineage")
    public class OpenLineageController
    extends Object
    This controller serves all requests for retrieving lineage details, both vertical and horizontal
    • Constructor Detail

      • OpenLineageController

        public OpenLineageController()
    • Method Detail

      • ultimateSourceGraph

        @GetMapping("/entities/{guid}/ultimate-source")
        public Graph ultimateSourceGraph​(@PathVariable("guid")
                                         String guid,
                                         @RequestParam
                                         boolean includeProcesses)
        Parameters:
        guid - unique identifier of the asset
        includeProcesses - if true Process nodes will be included
        Returns:
        graph of nodes and edges describing the ultimate sources of the asset
      • endToEndLineage

        @GetMapping("/entities/{guid}/end2end")
        @ResponseBody
        public Graph endToEndLineage​(@PathVariable("guid")
                                     String guid,
                                     @RequestParam
                                     boolean includeProcesses)
        Parameters:
        guid - unique identifier of the asset
        includeProcesses - if true Process nodes will be included
        Returns:
        graph of nodes and edges describing the end to end flow
      • ultimateDestination

        @GetMapping("/entities/{guid}/ultimate-destination")
        public Graph ultimateDestination​(@PathVariable("guid")
                                         String guid,
                                         @RequestParam
                                         boolean includeProcesses)
        Parameters:
        guid - unique identifier of the asset
        includeProcesses - if true Process nodes will be included
        Returns:
        graph of nodes and edges describing the ultimate destination of the asset
      • verticalLineage

        @GetMapping("/entities/{guid}/vertical-lineage")
        public Graph verticalLineage​(@PathVariable("guid")
                                     String guid,
                                     @RequestParam
                                     boolean includeProcesses)
        Parameters:
        guid - unique identifier of the glossary term
        includeProcesses - if true Process nodes will be included
        Returns:
        graph of nodes and edges describing the assets linked to the glossary term
      • getEntityDetails

        @GetMapping("entities/{guid}/details")
        public LineageVertex getEntityDetails​(@PathVariable("guid")
                                              String guid)
        Parameters:
        guid - of the Entity to be retrieved
        Returns:
        the entity details
      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder webdataBinder)
        This method is registering a custom converter for View and Scope enums in order to be able to use in url the text of the enum and not the actual name
        Parameters:
        webdataBinder - DataBinder for data binding from web request parameters to JavaBean objects