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, org.odpi.openmetadata.accessservices.assetlineage.AssetLineage assetLineageClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 entity
      typeDefName - the type def name of the entity
      Returns:
      a relationships list
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the invalid parameter exception
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the property server exception
      org.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