Class OpenLineageAssetContextHandler
java.lang.Object
org.odpi.openmetadata.governanceservers.openlineage.handlers.OpenLineageAssetContextHandler
-
Constructor Summary
ConstructorsConstructorDescriptionOpenLineageAssetContextHandler(String localServerUserId, org.odpi.openmetadata.accessservices.assetlineage.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.Optional<org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity>getAssetLineageEntity(org.odpi.openmetadata.accessservices.assetlineage.event.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
public OpenLineageAssetContextHandler(String localServerUserId, org.odpi.openmetadata.accessservices.assetlineage.AssetLineage assetLineageClient)
-
-
Method Details
-
getAssetContextForEntity
public List<String> getAssetContextForEntity(String guid, String typeDefName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the invalid parameter exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the property server exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user not authorized exception
-
getAssetLineageEntity
public Optional<org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity> getAssetLineageEntity(org.odpi.openmetadata.accessservices.assetlineage.event.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
-