java.lang.Object
org.odpi.openmetadata.governanceservers.openlineage.server.spring.OpenLineageResource

@RestController @RequestMapping("/servers/{serverName}/open-metadata/open-lineage/users/{userId}") public class OpenLineageResource extends Object
* The OpenLineageResource provides the server-side interface of the Open Lineage Services governance server.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.governanceservers.openlineage.responses.LineageResponse
    getElementHierarchy(String serverName, String userId, org.odpi.openmetadata.governanceservers.openlineage.requests.ElementHierarchyRequest elementHierarchyRequest)
    Returns a subraph representing the hierarchy of a certain node, based on the request
    org.odpi.openmetadata.governanceservers.openlineage.responses.LineageVertexResponse
    getEntityDetails(String serverName, String userId, String guid)
    Gets entity details.
    org.odpi.openmetadata.governanceservers.openlineage.responses.LineageNodeNamesResponse
    getNodes(String serverName, String userId, String type, String searchValue, int limit)
    Gets nodes names of certain type with display name containing a certain value.
    org.odpi.openmetadata.governanceservers.openlineage.responses.LineageSearchResponse
    getSearchResults(String serverName, String userId, org.odpi.openmetadata.governanceservers.openlineage.requests.LineageSearchRequest lineageSearchRequest)
     
    org.odpi.openmetadata.governanceservers.openlineage.responses.LineageTypesResponse
    getTypes(String serverName, String userId)
    Gets available entities types from lineage repository.
    org.odpi.openmetadata.governanceservers.openlineage.responses.LineageResponse
    lineage(String serverName, String userId, String guid, org.odpi.openmetadata.governanceservers.openlineage.model.LineageQueryParameters params)
    Returns the graph that the user will initially see when querying lineage.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenLineageResource

      public OpenLineageResource()
  • Method Details

    • lineage

      @PostMapping(path="/lineage/entities/{guid}", produces="application/json") public org.odpi.openmetadata.governanceservers.openlineage.responses.LineageResponse lineage(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("guid") String guid, @RequestBody org.odpi.openmetadata.governanceservers.openlineage.model.LineageQueryParameters params)
      Returns the graph that the user will initially see when querying lineage. In the future, this method will be extended to condense large paths to prevent cluttering of the users screen. The user will be able to extended the condensed path by querying a different method.
      Parameters:
      userId - calling user.
      serverName - name of the server instance to connect to.
      params -
      Returns:
      A subgraph containing all relevant paths, in graphSON format.
    • getEntityDetails

      @GetMapping(path="/lineage/entities/{guid}/details", produces="application/json") public org.odpi.openmetadata.governanceservers.openlineage.responses.LineageVertexResponse getEntityDetails(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("guid") String guid)
      Gets entity details.
      Parameters:
      serverName - the server name
      userId - the user id
      guid - the guid
      Returns:
      the entity details
    • getTypes

      @GetMapping(path="/lineage/types", produces="application/json") public org.odpi.openmetadata.governanceservers.openlineage.responses.LineageTypesResponse getTypes(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId)
      Gets available entities types from lineage repository.
      Parameters:
      serverName - the server name
      userId - the user id
      Returns:
      the available entities types from lineage repository
    • getNodes

      @GetMapping(path="/lineage/nodes", produces="application/json") public org.odpi.openmetadata.governanceservers.openlineage.responses.LineageNodeNamesResponse getNodes(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @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:
      serverName - the server name
      userId - the user id
      type - the type of the nodes name to search for
      searchValue - the string to be contained in the display name of the node - case insensitive
      limit - the maximum number of node names to retrieve
      Returns:
      the node names that match criteria
    • getSearchResults

      @PostMapping(path="lineage/search", produces="application/json") public org.odpi.openmetadata.governanceservers.openlineage.responses.LineageSearchResponse getSearchResults(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestBody org.odpi.openmetadata.governanceservers.openlineage.requests.LineageSearchRequest lineageSearchRequest)
    • getElementHierarchy

      @PostMapping(path="elements/hierarchy", produces="application/json") public org.odpi.openmetadata.governanceservers.openlineage.responses.LineageResponse getElementHierarchy(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestBody org.odpi.openmetadata.governanceservers.openlineage.requests.ElementHierarchyRequest elementHierarchyRequest)
      Returns a subraph representing the hierarchy of a certain node, based on the request
      Parameters:
      userId - calling user.
      serverName - name of the server instance to connect to.
      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, in graphSON format.