Package cascading.operation

Examples of cascading.operation.OperationException


      value = "";

    Matcher matcher = functionCall.getContext().getLhs().reset( value );

    if( !matcher.find() )
      throw new OperationException( "could not match pattern: [" + getPatternString() + "] with value: [" + value + "]" );

    Tuple output = functionCall.getContext().getRhs();

    output.clear();
View Full Code Here


      {
      parameterNames = guessParameterNames();
      }
    catch( IOException exception )
      {
      throw new OperationException( "could not read expression: " + block, exception );
      }
    catch( CompileException exception )
      {
      throw new OperationException( "could not compile expression: " + block, exception );
      }

    return parameterNames;
    }
View Full Code Here

    return parameterNames;
    }

  protected String[] guessParameterNames() throws CompileException, IOException
    {
    throw new OperationException( "parameter names are required" );
    }
View Full Code Here

      {
      return new ScriptEvaluator( block, returnType, parameterNames, parameterTypes );
      }
    catch( CompileException exception )
      {
      throw new OperationException( "could not compile script: " + block, exception );
      }
    }
View Full Code Here

      return context.scriptEvaluator.evaluate( arguments );
      }
    catch( InvocationTargetException exception )
      {
      throw new OperationException( "could not evaluate expression: " + block, exception.getTargetException() );
      }
    }
View Full Code Here

      {
      return new ExpressionEvaluator( block, getReturnType(), parameterNames, parameterTypes );
      }
    catch( CompileException exception )
      {
      throw new OperationException( "could not compile expression: " + block, exception );
      }
    }
View Full Code Here

      else
        makeCalendarFields( output, date );
      }
    catch( ParseException exception )
      {
      throw new OperationException( "unable to parse input value: " + functionCall.getArguments().getObject( 0 ), exception );
      }

    functionCall.getOutputCollector().add( output );
    }
View Full Code Here

   * @return Object[]
   */
  public static <T> T[] asArray( Tuple tuple, T[] destination )
    {
    if( tuple.size() != destination.length )
      throw new OperationException( "number of input tuple values: " + tuple.size() + ", does not match destination array size: " + destination.length );

    return tuple.elements( destination );
    }
View Full Code Here

   */
  @Deprecated
  public static Object[] asArray( Tuple tuple, Class[] types, Object[] destination )
    {
    if( tuple.size() != types.length )
      throw new OperationException( "number of input tuple values: " + tuple.size() + ", does not match number of coercion types: " + types.length );

    for( int i = 0; i < types.length; i++ )
      destination[ i ] = coerce( tuple, i, types[ i ] );

    return destination;
View Full Code Here

    }

  public static Object[] asArray( Tuple tuple, CoercibleType[] coercions, Class[] types, Object[] destination )
    {
    if( tuple.size() != types.length )
      throw new OperationException( "number of input tuple values: " + tuple.size() + ", does not match number of coercion types: " + types.length );

    for( int i = 0; i < types.length; i++ )
      destination[ i ] = coercions[ i ].coerce( tuple.getObject( i ), types[ i ] );

    return destination;
View Full Code Here

TOP

Related Classes of cascading.operation.OperationException

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.