Package sql.util

Examples of sql.util.ImproperParallelismException


        rightParentParams);

    // lower bound
    final int minParallelism = estimateMinParallelism(leftParentParams, rightParentParams);
    if (minParallelism > parallelism)
      throw new ImproperParallelismException("Component " + currentCompName
          + " cannot have parallelism LESS than " + minParallelism);

    // upper bound
    final int maxParallelism = estimateDistinctHashes(leftParentParams, rightParentParams);
    if (parallelism > maxParallelism)
      if (leftParallelism == 1 && rightParallelism == 1)
        // if parallelism of both parents is 1, then we should not raise
        // an exception
        // exception serves to force smaller parallelism at sources
        parallelism = maxParallelism;
      else
        throw new ImproperParallelismException("Component " + currentCompName
            + " cannot have parallelism MORE than " + maxParallelism);

    // setting
    params.setParallelism(parallelism);
View Full Code Here


        && SystemParameters.getBoolean(_map, "DIP_BATCH_PAR")) {
      if (SystemParameters.isExisting(_map, compName + "_PAR"))
        parallelism = SystemParameters.getInt(_map, compName + "_PAR");
      else
        // I don't want this query plan
        throw new ImproperParallelismException("A user did not specify parallelism for "
            + compName + ". Thus, it is assumed he does not want that query plan!");
    } else {
      // we start from the sum of parent parallelism (we know it won't be
      // less anyway)
      final int minParallelism = leftParentParams.getParallelism()
View Full Code Here

TOP

Related Classes of sql.util.ImproperParallelismException

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.