Search in sources :

Example 6 with ExecutionLocation

use of org.apache.beam.runners.dataflow.worker.graph.Nodes.ExecutionLocation in project beam by apache.

the class DeduceNodeLocationsFunctionTest method assertThatLocationIsProperlyDeduced.

private void assertThatLocationIsProperlyDeduced(Node node, ExecutionLocation expectedLocation) {
    assertThat(node, instanceOf(ParallelInstructionNode.class));
    ExecutionLocation location = ((ParallelInstructionNode) node).getExecutionLocation();
    assertEquals(location, expectedLocation);
}
Also used : ParallelInstructionNode(org.apache.beam.runners.dataflow.worker.graph.Nodes.ParallelInstructionNode) ExecutionLocation(org.apache.beam.runners.dataflow.worker.graph.Nodes.ExecutionLocation)

Aggregations

ExecutionLocation (org.apache.beam.runners.dataflow.worker.graph.Nodes.ExecutionLocation)6 ParallelInstructionNode (org.apache.beam.runners.dataflow.worker.graph.Nodes.ParallelInstructionNode)6 Node (org.apache.beam.runners.dataflow.worker.graph.Nodes.Node)5 DefaultEdge (org.apache.beam.runners.dataflow.worker.graph.Edges.DefaultEdge)2 Edge (org.apache.beam.runners.dataflow.worker.graph.Edges.Edge)2 InstructionOutputNode (org.apache.beam.runners.dataflow.worker.graph.Nodes.InstructionOutputNode)2 HashMap (java.util.HashMap)1 Test (org.junit.Test)1