Class OpenLineageService
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.service.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 Summary
Constructors Constructor Description OpenLineageService(OpenLineageClient openLineageClient, LineageGraphDisplayService lineageGraphDisplayService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphgetEndToEndLineage(String userId, String guid, boolean includeProcesses)LineageVertexgetEntityDetails(String userId, String guid)Gets node details.GraphgetUltimateDestination(String userId, String guid, boolean includeProcesses)GraphgetUltimateSource(String userId, String guid, boolean includeProcesses)GraphgetVerticalLineage(String userId, String guid, boolean includeProcesses)
-
-
-
Constructor Detail
-
OpenLineageService
@Autowired public OpenLineageService(OpenLineageClient openLineageClient, LineageGraphDisplayService lineageGraphDisplayService)
- Parameters:
openLineageClient- client to connect to open lineage serviceslineageGraphDisplayService- the rules for display
-
-
Method Detail
-
getUltimateSource
public Graph getUltimateSource(String userId, String guid, boolean includeProcesses)
- Parameters:
userId- id of the user triggering the requestguid- unique identifier if the assetincludeProcesses- 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 requestguid- unique identifier if the assetincludeProcesses- 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 requestguid- unique identifier if the assetincludeProcesses- 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 requestguid- unique identifier if the assetincludeProcesses- 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 idguid- the guid- Returns:
- the node details
-
-