Package org.apache.hadoop.hive.ql.plan

Examples of org.apache.hadoop.hive.ql.plan.CreateFunctionDesc


    this.conf = conf;
  }

  @Override
  public int execute(DriverContext driverContext) {
    CreateFunctionDesc createFunctionDesc = work.getCreateFunctionDesc();
    if (createFunctionDesc != null) {
      return createFunction(createFunctionDesc);
    }

    DropFunctionDesc dropFunctionDesc = work.getDropFunctionDesc();
View Full Code Here


  }

  private void analyzeCreateFunction(ASTNode ast) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    CreateFunctionDesc desc = new CreateFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

  }

  private void analyzeCreateFunction(ASTNode ast) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    CreateFunctionDesc desc = new CreateFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

    this.conf = conf;
  }

  @Override
  public int execute(DriverContext driverContext) {
    CreateFunctionDesc createFunctionDesc = work.getCreateFunctionDesc();
    if (createFunctionDesc != null) {
      return createFunction(createFunctionDesc);
    }

    DropFunctionDesc dropFunctionDesc = work.getDropFunctionDesc();
View Full Code Here

  }
 
  public void analyzeInternal(ASTNode ast, Context ctx) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    createFunctionDesc desc = new createFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
    LOG.info("analyze done");
  }
View Full Code Here

    this.conf = conf;
  }
 
  @Override
  public int execute() {
    createFunctionDesc createFunctionDesc = work.getCreateFunctionDesc();
    if (createFunctionDesc != null) {
      return createFunction(createFunctionDesc);
    }

    dropFunctionDesc dropFunctionDesc = work.getDropFunctionDesc();
View Full Code Here

    this.conf = conf;
  }
 
  @Override
  public int execute() {
    createFunctionDesc createFunctionDesc = work.getCreateFunctionDesc();
    if (createFunctionDesc != null) {
      return createFunction(createFunctionDesc);
    }

    dropFunctionDesc dropFunctionDesc = work.getDropFunctionDesc();
View Full Code Here

 
  private void analyzeCreateFunction(ASTNode ast)
      throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    createFunctionDesc desc = new createFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
  }
View Full Code Here

    this.conf = conf;
  }
 
  @Override
  public int execute() {
    createFunctionDesc createFunctionDesc = work.getCreateFunctionDesc();
    if (createFunctionDesc != null) {
      try {
        Class<? extends UDF> udfClass = getUdfClass(createFunctionDesc);
        FunctionRegistry.registerUDF(createFunctionDesc.getFunctionName(), udfClass,
                                     OperatorType.PREFIX, false);
        return 0;
      } catch (ClassNotFoundException e) {
        LOG.info("create function: " + StringUtils.stringifyException(e));
        return 1;
View Full Code Here

  }
 
  public void analyzeInternal(CommonTree ast, Context ctx) throws SemanticException {
    String functionName = ast.getChild(0).getText();
    String className = unescapeSQLString(ast.getChild(1).getText());
    createFunctionDesc desc = new createFunctionDesc(functionName, className);
    rootTasks.add(TaskFactory.get(new FunctionWork(desc), conf));
    LOG.info("analyze done");
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.plan.CreateFunctionDesc

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.