Codota Logo
FlowNodeGraph.addVertex
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: cwensel/cascading

protected void buildGraph( FlowNodeFactory flowNodeFactory, FlowElementGraph flowElementGraph, List<? extends ElementGraph> nodeSubGraphs, Map<ElementGraph, List<? extends ElementGraph>> pipelineSubGraphsMap )
 {
 if( pipelineSubGraphsMap == null )
  pipelineSubGraphsMap = Collections.emptyMap();
 for( ElementGraph nodeSubGraph : nodeSubGraphs )
  {
  List<? extends ElementGraph> pipelineGraphs = pipelineSubGraphsMap.get( nodeSubGraph );
  FlowNode flowNode = flowNodeFactory.createFlowNode( flowElementGraph, nodeSubGraph, pipelineGraphs );
  addVertex( flowNode );
  }
 bindEdges();
 }
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.processFlowNodeGraphaddVertex

Popular methods of FlowNodeGraph

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

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now