Class OpenLineageAssetContextHandler
java.lang.Object
org.odpi.openmetadata.governanceservers.openlineage.handlers.OpenLineageAssetContextHandler
-
Constructor Summary
ConstructorsConstructorDescriptionOpenLineageAssetContextHandler
(String localServerUserId, AssetLineage assetLineageClient) -
Method Summary
Modifier and TypeMethodDescriptiongetAssetContextForEntity
(String guid, String typeDefName) Determines the publishing of the entity's asset contexts and returns the list of all entities inside the context.getAssetLineageEntity
(LineageRelationshipsEvent lineageRelationshipsEvent) Given the lineage relationship event, it searches among its entities for a data file or a relational table and returns the found lineage entity.
-
Constructor Details
-
OpenLineageAssetContextHandler
-
-
Method Details
-
getAssetContextForEntity
public List<String> getAssetContextForEntity(String guid, String typeDefName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Determines the publishing of the entity's asset contexts and returns the list of all entities inside the context.- Parameters:
guid
- the guid of the entitytypeDefName
- the type def name of the entity- Returns:
- a relationships list
- Throws:
InvalidParameterException
- the invalid parameter exceptionPropertyServerException
- the property server exceptionUserNotAuthorizedException
- the user not authorized exception
-
getAssetLineageEntity
public Optional<LineageEntity> getAssetLineageEntity(LineageRelationshipsEvent lineageRelationshipsEvent) Given the lineage relationship event, it searches among its entities for a data file or a relational table and returns the found lineage entity.- Parameters:
lineageRelationshipsEvent
- the lineage relationships event- Returns:
- the lineage entity
-