public class LineageGraphConnector extends LineageGraphConnectorBase
ConnectorBase.ProtectedConnectionconnectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
LineageGraphConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteClassification(Set<GraphContext> classificationContext)
Deletes a classification of a vertex
|
void |
deleteEntity(String guid,
Object version) |
void |
deleteRelationship(String guid) |
void |
disconnect() |
Optional<Long> |
getAssetLineageUpdateTime() |
LineageVertexResponse |
getEntityDetails(String guid) |
void |
initializeGraphDB(AuditLog auditLog)
Instantiates the graph based on the configuration passed.
|
boolean |
isEntityInGraph(String guid) |
LineageResponse |
lineage(Scope scope,
String guid,
String displayNameMustContain,
boolean includeProcesses) |
void |
performLineageGraphJob() |
void |
saveAssetLineageUpdateTime(Long lastUpdateTime) |
void |
storeToGraph(Set<GraphContext> graphContext)
Creates vertices and the relationships between them
|
void |
updateClassification(Set<GraphContext> classificationContext)
Updates the classification of a vertex
|
void |
updateEntity(LineageEntity lineageEntity)
Updates the properties of a vertex
|
void |
updateNeighbours(String nodeGUID,
Set<String> neighboursGUIDS)
Updates the neighbours of a node by removing all the entities that no longer have a relationship with it.
|
void |
updateRelationship(LineageRelationship lineageRelationship)
Updates the properties of an edge
|
void |
upsertRelationship(LineageRelationship lineageRelationship)
Create or update the relationship between two edges
In case the vertexes are not created, they are firstly created
|
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, start, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitstartpublic void initializeGraphDB(AuditLog auditLog) throws OpenLineageException
initializeGraphDB in interface OpenLineageGraphConnectorinitializeGraphDB in class LineageGraphConnectorBaseOpenLineageExceptionpublic void disconnect()
disconnect in interface OpenLineageGraphConnectordisconnect in class ConnectorBasepublic void performLineageGraphJob()
public void saveAssetLineageUpdateTime(Long lastUpdateTime)
public void storeToGraph(Set<GraphContext> graphContext)
storeToGraph in interface LineageGraphstoreToGraph in class LineageGraphConnectorBasegraphContext - - graph Collection that contains vertices and edges to be storedpublic void updateNeighbours(String nodeGUID, Set<String> neighboursGUIDS)
updateNeighbours in interface LineageGraphupdateNeighbours in class LineageGraphConnectorBasenodeGUID - - the identifier of the entity that was updatedneighboursGUIDS - - the identifiers of the nodes that have a direct relationship to the entitypublic void updateEntity(LineageEntity lineageEntity)
updateEntity in interface LineageGraphupdateEntity in class LineageGraphConnectorBaselineageEntity - - LineageEntity object that has the updated valuespublic void upsertRelationship(LineageRelationship lineageRelationship)
upsertRelationship in interface LineageGraphupsertRelationship in class LineageGraphConnectorBaselineageRelationship - relationship to be updated or createdpublic void updateRelationship(LineageRelationship lineageRelationship)
updateRelationship in interface LineageGraphupdateRelationship in class LineageGraphConnectorBaselineageRelationship - - lineageRelationship object that has the updated valuespublic void updateClassification(Set<GraphContext> classificationContext)
updateClassification in interface LineageGraphupdateClassification in class LineageGraphConnectorBaseclassificationContext - - LineageEntity object that has the updated valuespublic void deleteClassification(Set<GraphContext> classificationContext)
deleteClassification in interface LineageGraphdeleteClassification in class LineageGraphConnectorBaseclassificationContext - - any remaining classifications, empty map if nonepublic void deleteEntity(String guid, Object version)
deleteEntity in interface LineageGraphdeleteEntity in class LineageGraphConnectorBasepublic void deleteRelationship(String guid)
deleteRelationship in interface LineageGraphdeleteRelationship in class LineageGraphConnectorBasepublic LineageResponse lineage(Scope scope, String guid, String displayNameMustContain, boolean includeProcesses)
public LineageVertexResponse getEntityDetails(String guid)
public boolean isEntityInGraph(String guid)
isEntityInGraph in interface LineageGraphisEntityInGraph in class LineageGraphConnectorBaseCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.