Examples of validate()


Examples of org.apache.hadoop.hbase.hbql.statement.HBqlStatement.validate()

    public static HBqlStatement parseHBqlStatement(final String sql) throws HBqlException {
        try {
            final HBqlParser parser = ParserUtil.newHBqlParser(sql + ";");
            final HBqlStatement stmt = parser.hbqlStatement();
            stmt.validate();
            return stmt;
        }
        catch (LexerRecognitionException e) {
            throw new ParseException(e.getRecognitionExecption(), sql);
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.statement.StatementWithParameters.validate()

        this.statement = Utils.parseHBqlStatement(sql);

        if ((this.getStatement() instanceof StatementWithParameters)) {
            final StatementWithParameters paramStmt = (StatementWithParameters)this.getStatement();
            // Need to call this here to enable setParameters
            paramStmt.validate(this.getHConnectionImpl());
        }
    }

    private HBqlStatement getStatement() {
        return this.statement;
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.statement.select.SimpleExpressionContext.validate()

        final ExecutionResults retval = new ExecutionResults("Parsed successfully");

        if (this.getGenericValue() != null) {
            final SimpleExpressionContext expr = new SimpleExpressionContext(this.getGenericValue());
            expr.validate();
            final Object val = expr.getValue(connection);
            retval.out.println(this.getGenericValue().asString() + " = " + val);
        }

        return retval;
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf.ConfVars.validate()

    public void setMetaConf(String key, String value) throws MetaException {
      ConfVars confVar = HiveConf.getMetaConf(key);
      if (confVar == null) {
        throw new MetaException("Invalid configuration key " + key);
      }
      String validate = confVar.validate(value);
      if (validate != null) {
        throw new MetaException("Invalid configuration value " + value + " for key " + key +
            " by " + validate);
      }
      Configuration configuration = getConf();
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.api.Index.validate()

      // Retrieve and validate the index
      Index index = null;
      try {
        index = hm.getIndex(tableName, indexName);
        assertNotNull("Unable to fetch index", index);
        index.validate();
        assertEquals("Index names don't match for index: " + indexName, indexName,
            index.getIndexName());
        assertEquals("Table names don't match for index: " + indexName, tableName,
            index.getOrigTableName());
        assertEquals("Index table names didn't match for index: " + indexName, indexTableName,
View Full Code Here

Examples of org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.validate()

      }

      LOG.info("Semantic Analysis Completed");

      // validate the plan
      sem.validate();

      plan = new QueryPlan(command, sem);
      // initialize FetchTask right here
      if (plan.getFetchTask() != null) {
        plan.getFetchTask().initialize(conf, plan, null);
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.AlterTableDesc.validate()

    alterTblDesc.setStoredAsSubDirectories(storedAsDirs);
    /**
     * Validate information about skewed table
     */
    alterTblDesc.setTable(tab);
    alterTblDesc.validate();
    rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(),
        alterTblDesc), conf));
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.CreateTableDesc.validate()

    if (qb.isCTAS()) {
      // generate a DDL task and make it a dependent task of the leaf
      CreateTableDesc crtTblDesc = qb.getTableDesc();

      crtTblDesc.validate();

      // Clear the output for CTAS since we don't need the output from the
      // mapredWork, the
      // DDLWork at the tail of the chain will have the output
      outputs.clear();
View Full Code Here

Examples of org.apache.hadoop.lib.service.ProxyUser.validate()

      if (user instanceof AuthenticationToken) {
        proxyUserName = ((AuthenticationToken)user).getUserName();
      } else {
        proxyUserName = user.getName();
      }
      proxyUser.validate(proxyUserName, HostnameFilter.get(), doAs);
      effectiveUser = doAs;
      AUDIT_LOG.info("Proxy user [{}] DoAs user [{}]", proxyUserName, doAs);
    }
    return effectiveUser;
  }
View Full Code Here

Examples of org.apache.hedwig.server.common.ServerConfiguration.validate()

                regionsList.add("regionHost3:4080:9876");
                return regionsList;
            }
        };
        try {
            conf.validate();
        }
        catch (ConfigurationException e) {
            logger.error("Invalid configuration: ", e);
            success = true;
        }
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.