Tabnine Logo
FlowNodeGraph.addEdge
Code IndexAdd Tabnine to your IDE (free)

How to use
addEdge
method
in
cascading.flow.planner.process.FlowNodeGraph

Best Java code snippets using cascading.flow.planner.process.FlowNodeGraph.addEdge (Showing top 2 results out of 315)

origin: cwensel/cascading

protected FlowNodeGraph createFlowNodeGraph( List<ElementGraph> elementGraphs )
 {
 ElementGraph mapElementGraph = elementGraphs.get( 0 );
 ElementGraph reduceElementGraph = elementGraphs.size() == 2 ? elementGraphs.get( 1 ) : null;
 FlowNodeGraph flowNodeGraph = new FlowNodeGraph();
 int nodes = elementGraphs.size();
 FlowNode mapperNode = new BaseFlowNode( mapElementGraph, String.format( "(1/%s)", nodes ), 0 );
 flowNodeGraph.addVertex( mapperNode );
 if( nodes == 2 )
  {
  FlowNode reducerNode = new BaseFlowNode( reduceElementGraph, "(2/2)", 1 );
  flowNodeGraph.addVertex( reducerNode );
  flowNodeGraph.addEdge( mapperNode, reducerNode, new ProcessEdge( mapperNode, reducerNode ) );
  }
 return flowNodeGraph;
 }
}
origin: cascading/cascading-hadoop2-mr1

protected FlowNodeGraph createFlowNodeGraph( List<ElementGraph> elementGraphs )
 {
 ElementGraph mapElementGraph = elementGraphs.get( 0 );
 ElementGraph reduceElementGraph = elementGraphs.size() == 2 ? elementGraphs.get( 1 ) : null;
 FlowNodeGraph flowNodeGraph = new FlowNodeGraph();
 int nodes = elementGraphs.size();
 FlowNode mapperNode = new BaseFlowNode( mapElementGraph, String.format( "(1/%s)", nodes ), 0 );
 flowNodeGraph.addVertex( mapperNode );
 if( nodes == 2 )
  {
  FlowNode reducerNode = new BaseFlowNode( reduceElementGraph, "(2/2)", 1 );
  flowNodeGraph.addVertex( reducerNode );
  flowNodeGraph.addEdge( mapperNode, reducerNode, new ProcessEdge( mapperNode, reducerNode ) );
  }
 return flowNodeGraph;
 }
}
cascading.flow.planner.processFlowNodeGraphaddEdge

Popular methods of FlowNodeGraph

  • edgeSet
  • getOrderedTopologicalIterator
  • vertexSet
  • getElementGraphs
  • <init>
  • addVertex
  • getTopologicalIterator
  • getEdge
  • getEdgeSource
  • getEdgeTarget
  • getElementSourceProcesses
  • inDegreeOf
  • getElementSourceProcesses,
  • inDegreeOf,
  • incomingEdgesOf,
  • outgoingEdgesOf,
  • bindEdges,
  • buildGraph,
  • getAnnotations,
  • getFlowElementsFor,
  • getSinkElements

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now