Class AssetContext
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetlineage.model.AssetContext
-
public class AssetContext extends Object
The asset context provides the entire lineage graph with vertices and edges.
-
-
Constructor Summary
Constructors Constructor Description AssetContext()Instantiates a new Asset context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddGraphContext(GraphContext graphContext)Add graphContext boolean.booleanaddVertex(LineageEntity Vertex)Add vertex boolean.Set<GraphContext>getGraphContexts()Gets edges.Map<String,Set<GraphContext>>getNeighbors()Gets neighbors.Set<LineageEntity>getVertices()Get vertices set.voidsetGraphContexts(Set<GraphContext> graphContexts)Sets edges.StringtoString()
-
-
-
Method Detail
-
addVertex
public boolean addVertex(LineageEntity Vertex)
Add vertex boolean.- Parameters:
Vertex- the vertex- Returns:
- the boolean
-
addGraphContext
public boolean addGraphContext(GraphContext graphContext)
Add graphContext boolean.- Parameters:
graphContext- the graphContext- Returns:
- the boolean
-
getVertices
public Set<LineageEntity> getVertices()
Get vertices set.- Returns:
- the set
-
getGraphContexts
public Set<GraphContext> getGraphContexts()
Gets edges.- Returns:
- the edges
-
setGraphContexts
public void setGraphContexts(Set<GraphContext> graphContexts)
Sets edges.- Parameters:
graphContexts- the edges
-
getNeighbors
public Map<String,Set<GraphContext>> getNeighbors()
Gets neighbors.- Returns:
- the neighbors
-
-