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

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

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

origin: cwensel/cascading

public FinderContext( Set<FlowElement> excludes )
 {
 getExcludedElements().addAll( excludes );
 }
origin: cwensel/cascading

public boolean isIgnored( FlowElement flowElement )
 {
 return getIgnoredElements().contains( flowElement );
 }
}
origin: cwensel/cascading

public boolean isRequired( FlowElement flowElement )
 {
 return getRequiredElements().contains( flowElement );
 }
origin: cwensel/cascading

private boolean areCompatibleNodes( int node1, int node2 )
 {
 Expression expression = matchGraph.getVertex( node1 );
 FlowElement flowElement = elementGraph.getVertex( node2 );
 boolean result;
 if( ( (ElementExpression) expression ).getCapture() == ElementCapture.Primary &&
  !finderContext.getRequiredElements().isEmpty() )
  result = finderContext.isRequired( flowElement );
 else if( finderContext.isExcluded( flowElement ) || finderContext.isIgnored( flowElement ) )
  result = false;
 else
  result = expression.applies( plannerContext, elementGraph.getElementGraph(), flowElement );
 if( LOG.isDebugEnabled() && result )
  LOG.debug( "compatible nodes: {}:{} matched {}:{}", node1, expression, node2, flowElement );
 return result;
 }
origin: cwensel/cascading

 if( finderContext.getRequiredElements().isEmpty() )
  finderContext.getRequiredElements().addAll( anchoredElements );
 finderContext.getMatchedElements().addAll( vertexMapping.values() );
 finderContext.getMatchedScopes().addAll( getCapturedEdges( plannerContext, elementGraph, vertexMapping ) );
 finderContext.getIgnoredElements().addAll( includedElements );
return new Match( matchExpression, elementGraph, mapping, finderContext.getMatchedElements(), finderContext.getMatchedScopes(), captureMap );
origin: cwensel/cascading

public Match findAllMatchesOnPrimary( PlannerContext plannerContext, ElementGraph elementGraph, Set<FlowElement> excludes )
 {
 return findMatchesOnPrimary( new FinderContext( excludes ), plannerContext, elementGraph, false );
 }
origin: cwensel/cascading

public Map<ElementExpression, FlowElement> findMapping( PlannerContext plannerContext, ElementGraph elementGraph )
 {
 return findMapping( new FinderContext(), plannerContext, elementGraph );
 }
origin: cwensel/cascading

public Match findFirstMatch( PlannerContext plannerContext, ElementGraph elementGraph, Set<FlowElement> exclusions )
 {
 return findFirstMatch( new FinderContext( exclusions ), plannerContext, elementGraph );
 }
origin: cwensel/cascading

public boolean isExcluded( FlowElement flowElement )
 {
 return getExcludedElements().contains( flowElement );
 }
origin: cwensel/cascading

public Match findMatchesOnPrimary( PlannerContext plannerContext, ElementGraph elementGraph, boolean firstOnly, Set<FlowElement> excludes )
 {
 return findMatchesOnPrimary( new FinderContext( excludes ), plannerContext, elementGraph, firstOnly );
 }
origin: cwensel/cascading

public Match findFirstMatch( PlannerContext plannerContext, ElementGraph elementGraph )
 {
 return findFirstMatch( new FinderContext(), plannerContext, elementGraph );
 }
origin: cwensel/cascading

public Match findAllMatchesOnPrimary( PlannerContext plannerContext, ElementGraph elementGraph )
 {
 return findMatchesOnPrimary( new FinderContext(), plannerContext, elementGraph, false );
 }
cascading.flow.planner.iso.finderFinderContext

Most used methods

  • <init>
  • getExcludedElements
  • getIgnoredElements
  • getMatchedElements
  • getMatchedScopes
  • getRequiredElements
  • isExcluded
  • isIgnored
  • isRequired

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JTextField (javax.swing)
  • Join (org.hibernate.mapping)
  • Best IntelliJ 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