congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SearchOrder
Code IndexAdd Tabnine to your IDE (free)

How to use
SearchOrder
in
cascading.flow.planner.iso.finder

Best Java code snippets using cascading.flow.planner.iso.finder.SearchOrder (Showing top 3 results out of 315)

origin: cwensel/cascading

private Iterator<Node> getIterator( SearchOrder searchOrder )
 {
 return SearchOrder.getNodeIterator( searchOrder, getDelegate() );
 }
origin: cwensel/cascading

public static <Node, G extends Graph> Iterator<Node> getNodeIterator( SearchOrder searchOrder, G graph )
 {
 if( searchOrder == null )
  return new TopologicalOrderIterator( graph ); // faster than getVertexSet().iterator()
 Node node = null;
 if( graph.containsVertex( Extent.head ) )
  {
  if( !searchOrder.isReversed() )
   node = (Node) Extent.head;
  else
   node = (Node) Extent.tail;
  }
 switch( searchOrder )
  {
  case Depth:
   return new DepthFirstIterator( graph, node );
  case Breadth:
   return new BreadthFirstIterator( graph, node );
  case Topological:
   return new TopologicalOrderIterator( graph ); // TODO: uses a equality based hashmap internally, will fail if relying on identity
  case ReverseDepth:
   return new DepthFirstIterator( new EdgeReversedGraph( graph ), node );
  case ReverseBreadth:
   return new BreadthFirstIterator( new EdgeReversedGraph( graph ), node );
  case ReverseTopological:
   return new TopologicalOrderIterator( new EdgeReversedGraph( graph ) ); // TODO: uses a equality based hashmap internally, will fail if relying on identity
  }
 throw new IllegalStateException( "unknown order: " + searchOrder );
 }
}
origin: cwensel/cascading

Iterator<FlowElement> iterator = SearchOrder.getNodeIterator( matchExpression.getSearchOrder(), directed( elementGraph ) );
cascading.flow.planner.iso.finderSearchOrder

Most used methods

  • getNodeIterator
  • isReversed

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ImageIO (javax.imageio)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim 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