Package cascading.util

Examples of cascading.util.EnumMultiMap


    // need a safe copy
    if( elementGraph.containsVertex( Extent.head ) )
      elementGraph = new ElementMaskSubGraph( elementGraph, Extent.head, Extent.tail );

    annotatedSubGraphs.put( new ElementDirectedGraph( elementGraph ), new EnumMultiMap() );

    return new Partitions( this, elementGraph, annotatedSubGraphs );
    }
View Full Code Here


    SubGraphIterator stepIterator = wrapIterator( expressionIterator );

    while( stepIterator.hasNext() )
      {
      ElementGraph next = stepIterator.next();
      EnumMultiMap annotationMap = stepIterator.getAnnotationMap( annotations );

      annotatedSubGraphs.put( next, annotationMap );
      }

    return new Partitions( this, elementGraph, expressionIterator.getContractedGraph(), expressionIterator.getMatches(), annotatedSubGraphs );
View Full Code Here

    this.traps = flowElementGraph.traps;
    this.checkpoints = flowElementGraph.checkpoints;
    this.requireUniqueCheckpoints = flowElementGraph.requireUniqueCheckpoints;

    if( flowElementGraph.annotations != null )
      this.annotations = new EnumMultiMap( flowElementGraph.annotations );

    Graphs.addAllVertices( this, flowElementGraph.vertexSet() );
    Graphs.addAllEdges( this, flowElementGraph, flowElementGraph.edgeSet() );
    }
View Full Code Here

    }

  @Override
  public EnumMultiMap getAnnotationMap( ElementAnnotation[] annotations )
    {
    EnumMultiMap annotationsMap = new EnumMultiMap();

    if( annotations.length == 0 )
      return annotationsMap;

    Match match = getLastMatch();

    for( ElementAnnotation annotation : annotations )
      annotationsMap.addAll( annotation.getAnnotation(), match.getCapturedElements( annotation.getCapture() ) );

    return annotationsMap;
    }
View Full Code Here

  @Override
  public EnumMultiMap getAnnotations()
    {
    if( annotations == null )
      annotations = new EnumMultiMap();

    return annotations;
    }
View Full Code Here

    if( !( parentElementGraph instanceof AnnotatedGraph ) || !( (AnnotatedGraph) parentElementGraph ).hasAnnotations() )
      return;

    Set<FlowElement> vertexSet = vertexSet();

    EnumMultiMap parentAnnotations = ( (AnnotatedGraph) parentElementGraph ).getAnnotations();

    Set<Enum> allKeys = parentAnnotations.getKeys();

    for( Enum annotation : allKeys )
      {
      Set<FlowElement> flowElements = (Set<FlowElement>) parentAnnotations.getValues( annotation );

      for( FlowElement flowElement : flowElements )
        {
        if( vertexSet.contains( flowElement ) )
          getAnnotations().addAll( annotation, flowElements );
View Full Code Here

  @Override
  public EnumMultiMap getAnnotations()
    {
    if( annotations == null )
      annotations = new EnumMultiMap();

    return annotations;
    }
View Full Code Here

TOP

Related Classes of cascading.util.EnumMultiMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.