@Alpha public interface FlowGraph
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDataNode(DataNode node)
|
boolean |
addFlowEdge(FlowEdge edge)
|
boolean |
deleteDataNode(String nodeId)
|
boolean |
deleteFlowEdge(String edgeId)
|
FlowGraphPath |
findPath(FlowSpec flowSpec)
A method that takes a
FlowSpec containing the source and destination DataNodes, as well as the
source and target DatasetDescriptors, and returns a sequence
of fully resolved JobSpecs that will move the source dataset
from the source datanode, perform any necessary transformations and land the dataset at the destination node
in the format described by the target DatasetDescriptor. |
Collection<FlowEdge> |
getEdges(DataNode node)
Get a collection of edges adjacent to a
DataNode. |
Collection<FlowEdge> |
getEdges(String nodeId)
Get a collection of edges adjacent to a
DataNode. |
DataNode |
getNode(String nodeId)
Get a
DataNode from the node identifier |
boolean addDataNode(DataNode node)
boolean addFlowEdge(FlowEdge edge)
boolean deleteDataNode(String nodeId)
boolean deleteFlowEdge(String edgeId)
edgeId - label of the edge to be removedFlowGraph successfully.Collection<FlowEdge> getEdges(String nodeId)
DataNode. Useful for path finding algorithms and graph
traversal algorithms such as Djikstra's shortest-path algorithm, BFSCollection<FlowEdge> getEdges(DataNode node)
DataNode.FlowGraphPath findPath(FlowSpec flowSpec) throws PathFinder.PathFinderException, ReflectiveOperationException
FlowSpec containing the source and destination DataNodes, as well as the
source and target DatasetDescriptors, and returns a sequence
of fully resolved JobSpecs that will move the source dataset
from the source datanode, perform any necessary transformations and land the dataset at the destination node
in the format described by the target DatasetDescriptor.flowSpec - a Spec containing a high-level description of input flow.FlowGraphPath that encapsulates a sequence of JobSpecs
satisfying flowSpec.PathFinder.PathFinderExceptionReflectiveOperationException