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

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

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

origin: cwensel/cascading

@Override
public int getNumFlowNodes()
 {
 return flowNodeGraph.vertexSet().size();
 }
origin: cwensel/cascading

public Set<FlowElement> getFlowElementsFor( Enum annotation )
 {
 Set<FlowElement> results = createIdentitySet();
 for( FlowNode flowNode : vertexSet() )
  results.addAll( flowNode.getFlowElementsFor( annotation ) );
 return results;
 }
origin: cwensel/cascading

public FlowNodeGraph( FlowNodeFactory flowNodeFactory, FlowElementGraph flowElementGraph, List<? extends ElementGraph> nodeSubGraphs, Map<ElementGraph, List<? extends ElementGraph>> pipelineSubGraphsMap )
 {
 buildGraph( flowNodeFactory, flowElementGraph, nodeSubGraphs, pipelineSubGraphsMap );
 // consistently sets ordinal of node based on topological dependencies and tie breaking by the given Comparator
 Iterator<FlowNode> iterator = getOrderedTopologicalIterator();
 int ordinal = 0;
 int size = vertexSet().size();
 while( iterator.hasNext() )
  {
  BaseFlowNode next = (BaseFlowNode) iterator.next();
  next.setOrdinal( ordinal );
  next.setName( flowNodeFactory.makeFlowNodeName( next, size, ordinal ) );
  ordinal++;
  }
 }
origin: dataArtisans/cascading-flink

private void printFlowStep() {
  Iterator<FlowNode> iterator = getFlowNodeGraph().getTopologicalIterator();
  LOG.info("Step Cnt: {} ", getFlowNodeGraph().vertexSet().size());
  LOG.info("Edge Cnt: {} ", getFlowNodeGraph().edgeSet().size());
  LOG.info("Src Set: {} ", getFlowNodeGraph().getSourceElements());
  LOG.info("Snk Set: {} ", getFlowNodeGraph().getSinkElements());
  LOG.info("##############");
  while(iterator.hasNext()) {
    FlowNode next = iterator.next();
    LOG.info("Node cnt: {} ", next.getElementGraph().vertexSet().size());
    LOG.info("Edge cnt: {} ", next.getElementGraph().edgeSet().size());
    LOG.info("Nodes: {} ", next.getElementGraph().vertexSet());
    LOG.info("-----------");
  }
}
origin: cwensel/cascading

public LocalStepRunner( FlowProcess<Properties> flowProcess, LocalFlowStep step )
 {
 this.currentProcess = flowProcess;
 this.flowNode = Util.getFirst( step.getFlowNodeGraph().vertexSet() );
 this.streamGraph = new LocalStepStreamGraph( this.currentProcess, step, flowNode );
 this.heads = streamGraph.getHeads();
 }
origin: cwensel/cascading

protected void initSteps()
 {
 if( flowStepGraph == null )
  return;
 Set<FlowStep> flowSteps = flowStepGraph.vertexSet();
 for( FlowStep flowStep : flowSteps )
  {
  ( (BaseFlowStep) flowStep ).setFlow( this );
  Set<FlowNode> flowNodes = flowStep.getFlowNodeGraph().vertexSet();
  for( FlowNode flowNode : flowNodes )
   ( (BaseFlowNode) flowNode ).setFlowStep( flowStep );
  }
 }
origin: cwensel/cascading

private void initFromNodeConfigDef( final Properties properties )
 {
 initConfFromNodeConfigDef( Util.getFirst( getFlowNodeGraph().vertexSet() ).getElementGraph(), getSetterFor( properties ) );
 }
origin: cwensel/cascading

for( FlowNode current : step.getFlowNodeGraph().vertexSet() )
origin: cascading/cascading-hadoop2-mr1

for( FlowNode current : step.getFlowNodeGraph().vertexSet() )
cascading.flow.planner.processFlowNodeGraphvertexSet

Popular methods of FlowNodeGraph

  • edgeSet
  • getOrderedTopologicalIterator
  • getElementGraphs
  • <init>
  • addVertex
  • 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
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top PhpStorm plugins
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