Class OpenLineageAssetContextHandler
- java.lang.Object
-
- org.odpi.openmetadata.governanceservers.openlineage.handlers.OpenLineageAssetContextHandler
-
public class OpenLineageAssetContextHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description OpenLineageAssetContextHandler(String localServerUserId, AssetLineage assetLineageClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAssetContextForEntity(String guid, String typeDefName)Determines the publishing of the entity's asset contexts and returns the list of all entities inside the context.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.
-
-
-
Constructor Detail
-
OpenLineageAssetContextHandler
public OpenLineageAssetContextHandler(String localServerUserId, AssetLineage assetLineageClient)
-
-
Method Detail
-
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
-
-