Package org.apache.drill.exec.expr.fn

Examples of org.apache.drill.exec.expr.fn.FunctionConverter


    }
    builder.build(DrillConfig.create(), args[0]);
  }

  private void build(DrillConfig config, String targetSrcDir) {
    FunctionConverter converter = new FunctionConverter();
    Set<Class<? extends DrillFunc>> providerClasses = PathScanner.scanForImplementations(DrillFunc.class, config.getStringList(ExecConstants.FUNCTION_PACKAGES));

    int count = 0;
    for (Class<? extends DrillFunc> clazz : providerClasses) {
      try {
        DrillFuncHolder holder = converter.getHolder(clazz);

        if (holder != null && holder instanceof DrillSimpleFuncHolder) {
          InterpreterGenerator generator = new InterpreterGenerator((DrillSimpleFuncHolder)holder, clazz.getSimpleName() + InterpreterGenerator.INTERPRETER_CLASSNAME_POSTFIX, targetSrcDir);
          generator.build();
          count ++;
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.expr.fn.FunctionConverter

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.