public abstract class LineageGraphConnectorBase extends ConnectorBase implements LineageGraph
ConnectorBase.ProtectedConnectionconnectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
LineageGraphConnectorBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
deleteClassification(Set<GraphContext> classificationContext)
Deletes an entity's classification in the Graph
|
abstract void |
deleteEntity(String guid,
Object version)
/**
Deletes a vertex in the graph
|
abstract void |
deleteRelationship(String guid)
Deletes a relationship in the graph
|
abstract void |
initializeGraphDB(AuditLog auditLog)
Initialize the connectors
|
abstract boolean |
isEntityInGraph(String guid)
Returns whether an entity exists in the graph or not
|
abstract void |
removeObsoleteEdgesFromGraph(String entityGUID,
Set<GraphContext> graphContext)
Checks difference between new graph context and existing graph and delete edge graphs that are no longer in the cotnext
|
abstract void |
storeToGraph(Set<GraphContext> graphContext)
Stores a lineage event into the lineage graph database
|
abstract void |
updateClassification(Set<GraphContext> classificationContext)
Updates an entity's classification in the Graph
|
abstract void |
updateEntity(LineageEntity lineageEntity)
Updates a vertex in the Graph
|
abstract void |
updateRelationship(LineageRelationship lineageRelationship)
Updates a vertex in the Graph
|
abstract void |
upsertRelationship(LineageRelationship lineageRelationship)
Create or update the relationship between two edges
In case the vertexes are not created, they are firstly created
|
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, start, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAssetLineageUpdateTime, performLineageGraphJob, saveAssetLineageUpdateTimedisconnect, getEntityDetails, lineage, startpublic abstract void initializeGraphDB(AuditLog auditLog) throws OpenLineageException
OpenLineageGraphConnectorinitializeGraphDB in interface OpenLineageGraphConnectorOpenLineageExceptionpublic abstract void storeToGraph(Set<GraphContext> graphContext)
LineageGraphstoreToGraph in interface LineageGraphgraphContext - graph Collectionpublic abstract void removeObsoleteEdgesFromGraph(String entityGUID, Set<GraphContext> graphContext)
LineageGraphremoveObsoleteEdgesFromGraph in interface LineageGraphentityGUID - entity GUID whose context is being updatedgraphContext - the nodes and edges related to the entitypublic abstract void updateEntity(LineageEntity lineageEntity)
LineageGraphupdateEntity in interface LineageGraphlineageEntity - entity to be updatedpublic abstract void updateRelationship(LineageRelationship lineageRelationship)
LineageGraphupdateRelationship in interface LineageGraphlineageRelationship - relationship to be updatedpublic abstract void updateClassification(Set<GraphContext> classificationContext)
LineageGraphupdateClassification in interface LineageGraphclassificationContext - classification contextpublic abstract void deleteClassification(Set<GraphContext> classificationContext)
LineageGraphdeleteClassification in interface LineageGraphclassificationContext - classification contextpublic abstract void upsertRelationship(LineageRelationship lineageRelationship)
LineageGraphupsertRelationship in interface LineageGraphlineageRelationship - relationship to be updated or createdpublic abstract void deleteRelationship(String guid)
LineageGraphdeleteRelationship in interface LineageGraphguid - unique identifier of the entity to be deletedpublic abstract void deleteEntity(String guid, Object version)
LineageGraphdeleteEntity in interface LineageGraphguid - unique identifier of the entity to be deletedversion - version of the entity to be deletedpublic abstract boolean isEntityInGraph(String guid)
LineageGraphisEntityInGraph in interface LineageGraphguid - the lineage entity guidCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.