Package org.apache.tajo.exception

Examples of org.apache.tajo.exception.InternalException


  public Function newInstance() throws InternalException {
    try {
      Constructor<? extends Function> cons = getFuncClass().getConstructor();
      return cons.newInstance();
    } catch (Exception ioe) {
      throw new InternalException("Cannot initiate function " + signature);
    }
  }
View Full Code Here


      FieldEval fieldEval = (FieldEval) expr;
      return inputSchema.getColumnByFQN(fieldEval.getName()).getDataType();

     
    default:
      throw new InternalException("Unknown expr type: "
          + expr.getType().toString());
    }
  }
View Full Code Here

    String jdbcDriver = getJDBCDriverName();
    try {
      Class.forName(getJDBCDriverName()).newInstance();
      LOG.info("Loaded the JDBC driver (" + jdbcDriver + ")");
    } catch (Exception e) {
      throw new InternalException("Cannot load JDBC driver " + jdbcDriver, e);
    }

    try {
      LOG.info("Trying to connect database (" + jdbcUri + ")");
      conn = createConnection(conf);
      LOG.info("Connected to database (" + jdbcUri + ")");
    } catch (SQLException e) {
      throw new InternalException("Cannot connect to database (" + jdbcUri
          + ")", e);
    }

    try {
      if (!isInitialized()) {
        LOG.info("The base tables of CatalogServer are created.");
        createBaseTable();
      } else {
        LOG.info("The base tables of CatalogServer already is initialized.");
      }
    } catch (SQLException se) {
      throw new InternalException(
          "Cannot initialize the persistent storage of Catalog", se);
    }

    int dbVersion = 0;
    try {
      dbVersion = needUpgrade();
    } catch (SQLException e) {
      throw new InternalException(
          "Cannot check if the DB need to be upgraded", e);
    }

//    if (dbVersion < VERSION) {
//      LOG.info("DB Upgrade is needed");
View Full Code Here

    if (channel.getPartitionType() == HASH_PARTITION) {
      return createHashPartitionedTasks(masterPlan, subQuery, childSubQuery, channel, maxNum);
    } else if (channel.getPartitionType() == RANGE_PARTITION) {
      return createRangePartitionedTasks(subQuery, childSubQuery, channel, maxNum);
    } else {
      throw new InternalException("Cannot support partition type");
    }
  }
View Full Code Here

  public Function newInstance() throws InternalException {
    try {
      Constructor<? extends Function> cons = getFuncClass().getConstructor();
      return cons.newInstance();
    } catch (Exception ioe) {
      throw new InternalException("Cannot initiate function " + signature);
    }
  }
View Full Code Here

        return buildOutputOperator(context, logicalPlan, execPlan);
      } else {
        return execPlan;
      }
    } catch (IOException ioe) {
      throw new InternalException(ioe);
    }
  }
View Full Code Here

        return buildOutputOperator(context, logicalPlan, execPlan);
      } else {
        return execPlan;
      }
    } catch (IOException ioe) {
      throw new InternalException(ioe);
    }
  }
View Full Code Here

      FieldEval fieldEval = (FieldEval) expr;
      return inputSchema.getColumn(fieldEval.getName()).getDataType();

     
    default:
      throw new InternalException("Unknown expr type: "
          + expr.getType().toString());
    }
  }
View Full Code Here

    if (channel.getShuffleType() == HASH_SHUFFLE) {
      scheduleHashShuffledFetches(schedulerContext, masterPlan, subQuery, channel, maxNum);
    } else if (channel.getShuffleType() == RANGE_SHUFFLE) {
      scheduleRangeShuffledFetches(schedulerContext, masterPlan, subQuery, channel, maxNum);
    } else {
      throw new InternalException("Cannot support partition type");
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.tajo.exception.InternalException

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.