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

      • getTypes

        @GetMapping("types")
        public List<String> getTypes()
        Gets available entities types from lineage repository.
        Returns:
        the available entities types
      • getNodes

        @GetMapping("nodes")
        public List<String> getNodes​(@RequestParam("type")
                                     String type,
                                     @RequestParam("name")
                                     String searchValue,
                                     @RequestParam("limit")
                                     int limit)
        Gets nodes names of certain type with display name containing a certain value.
        Parameters:
        type - the type of the nodes name to search for
        searchValue - the string to be contained in the qualified name of the node - case insensitive
        limit - the maximum number of node names to retrieve
        Returns:
        the list of node names
      • elementHierarchy

        @PostMapping("elements/hierarchy")
        public Graph elementHierarchy​(@RequestBody
                                      ElementHierarchyRequest elementHierarchyRequest)
        Returns a subraph representing the hierarchy of a certain node, based on the request
        Parameters:
        elementHierarchyRequest - contains the guid of the queried node and the hierarchyType of the display name of the nodes
        Returns:
        a subgraph containing all relevant paths,
      • 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