Examples of ConcreteCall


Examples of cascading.operation.ConcreteCall

    return invokeBuffer( buffer, null, argumentsArray, resultFields );
    }

  public static TupleListCollector invokeBuffer( Buffer buffer, TupleEntry group, TupleEntry[] argumentsArray, Fields resultFields )
    {
    ConcreteCall operationCall = new ConcreteCall( argumentsArray[ 0 ].getFields() );

    operationCall.setGroup( group );

    buffer.prepare( FlowProcess.NULL, operationCall );
    TupleListCollector collector = new TupleListCollector( resultFields, true );
    operationCall.setOutputCollector( collector );

    operationCall.setArgumentsIterator( Arrays.asList( argumentsArray ).iterator() );

    buffer.operate( FlowProcess.NULL, operationCall );

    buffer.cleanup( null, operationCall );
View Full Code Here

Examples of cascading.operation.ConcreteCall

    return new TupleEntry( Fields.size( tuple.size() ), tuple );
    }

  private void assertFail( GroupAssertion assertion, TupleEntry groupEntry, TupleEntry... values )
    {
    ConcreteCall operationCall = new ConcreteCall();

    operationCall.setGroup( groupEntry );

    assertion.prepare( FlowProcess.NULL, operationCall );
    assertion.start( FlowProcess.NULL, operationCall );

    for( TupleEntry value : values )
      {
      operationCall.setArguments( value );
      assertion.aggregate( FlowProcess.NULL, operationCall );
      }

    try
      {
      operationCall.setArguments( null );
      assertion.doAssert( FlowProcess.NULL, operationCall );
      fail();
      }
    catch( AssertionException exception )
      {
View Full Code Here

Examples of cascading.operation.ConcreteCall

      }
    }

  private void assertPass( GroupAssertion assertion, TupleEntry groupEntry, TupleEntry... values )
    {
    ConcreteCall operationCall = new ConcreteCall();

    operationCall.setGroup( groupEntry );

    assertion.prepare( FlowProcess.NULL, operationCall );
    assertion.start( FlowProcess.NULL, operationCall );

    for( TupleEntry value : values )
      {
      operationCall.setArguments( value );
      assertion.aggregate( FlowProcess.NULL, operationCall );
      }

    operationCall.setArguments( null );
    assertion.doAssert( FlowProcess.NULL, operationCall );

    assertion.cleanup( FlowProcess.NULL, operationCall );
    }
View Full Code Here

Examples of cascading.operation.ConcreteCall

    for( int i = 0; i < filters.length; i++ )
      {
      Filter filter = filters[ i ];

      context.calls[ i ] = new ConcreteCall( (ConcreteCall) operationCall );
      context.calls[ i ].setArguments( context.argumentEntries[ i ] );
      context.calls[ i ].setArgumentFields( context.argumentEntries[ i ].getFields() );

      filter.prepare( flowProcess, context.calls[ i ] );
      }
View Full Code Here

Examples of cascading.operation.ConcreteCall

  @Override
  public void initialize()
    {
    Scope outgoingScope = outgoingScopes.get( 0 );

    operationCall = new ConcreteCall( outgoingScope.getArgumentsDeclarator(), outgoingScope.getOperationDeclaredFields() );

    argumentsSelector = outgoingScope.getArgumentsSelector();
    remainderFields = outgoingScope.getRemainderPassThroughFields();
    outgoingSelector = getOutgoingSelector();
View Full Code Here

Examples of cascading.scheme.ConcreteCall

      {
      isComplete = true;
      return;
      }

    sourceCall = new ConcreteCall();

    sourceCall.setIncomingEntry( getTupleEntry() );
    sourceCall.setInput( wrapInput( inputIterator.next() ) );

    try
View Full Code Here

Examples of cascading.scheme.ConcreteCall

    super( Fields.asDeclaration( scheme.getSinkFields() ) );
    this.flowProcess = flowProcess;
    this.scheme = scheme;
    this.identifier = identifier;

    this.sinkCall = new ConcreteCall();
    this.sinkCall.setOutgoingEntry( this.tupleEntry ); // created in super ctor

    if( output != null )
      setOutput( output );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.