Examples of compile()


Examples of org.elasticsearch.hadoop.serialization.field.IndexExtractor.compile()

                        settings.getMappingTimestampExtractorClassName(), settings);
            }

            // create adapter
            IndexExtractor iformat = ObjectUtils.<IndexExtractor> instantiate(settings.getMappingIndexExtractorClassName(), settings);
            iformat.compile(new Resource(settings, false).toString());

            if (iformat.hasPattern()) {
                indexExtractor = iformat;
            }
View Full Code Here

Examples of org.elasticsearch.script.ScriptService.compile()

            scriptType = ScriptType.INDEXED;
        } else {
            scriptType = ScriptType.INLINE;
        }
        final ScriptService scriptService = riverConfig.getScriptService();
        final CompiledScript compiledScript = scriptService.compile(lang,
                script, scriptType);
        ExecutableScript executable = scriptService.executable(compiledScript,
                vars);
        return executable.run();
    }
View Full Code Here

Examples of org.exist.xmldb.XQueryService.compile()

        XQueryService service = (XQueryService) collection.getService("XQueryService", "1.0");
        service.declareVariable("filename", "");
        service.declareVariable("count", "0");
        String query = IMPORT + xqueryContent;
        System.out.println("query: " + query);
        CompiledExpression compiled = service.compile(query);
        try {
            for (int i = 0; i < count; i++) {
                File nextFile = new File(directory, prefix + i + ".xml");
               
                service.declareVariable("filename", nextFile.getName());
View Full Code Here

Examples of org.exist.xquery.XQuery.compile()

                }

                if(compiled == null) {

                    try {
                        compiled = xquery.compile(context, source);
                    }
                    catch(final IOException e) {
                        abort("Failed to read query from " + xqueryresource);
                    }
                }
View Full Code Here

Examples of org.exist.xslt.compiler.XSLElement.compile()

     
      XSLContext context = new XSLContext(broker.getBrokerPool());
     
      context.setDefaultFunctionNamespace(Factory.namespaceURI);
     
      XSLStylesheet expr = (XSLStylesheet) stylesheet.compile(context);
      AnalyzeContextInfo info = new AnalyzeContextInfo((XQueryContext)context);
      info.setFlags(Expression.IN_NODE_CONSTRUCTOR);
        expr.analyze(info);

        if (context.optimizationsEnabled()) {
View Full Code Here

Examples of org.formulacompiler.compiler.internal.engine.ModelToEngineCompiler.compile()

    if (this.constExprOptListener != null) {
      ecc.constExprCellListenerSupport = new ConstantExpressionCellListenerSupportImpl( this.constExprOptListener );
    }
    final ModelToEngineCompiler ec = new ModelToEngineCompilerImpl( ecc );

    return ec.compile();
  }

}
View Full Code Here

Examples of org.formulacompiler.compiler.internal.engine.ModelToEngineCompilerImpl.compile()

    if (this.constExprOptListener != null) {
      ecc.constExprCellListenerSupport = new ConstantExpressionCellListenerSupportImpl( this.constExprOptListener );
    }
    final ModelToEngineCompiler ec = new ModelToEngineCompilerImpl( ecc );

    return ec.compile();
  }

}
View Full Code Here

Examples of org.gradle.plugins.javascript.coffeescript.compile.internal.rhino.RhinoCoffeeScriptCompiler.compile()

        spec.setOptions(getOptions());

        LogLevel logLevel = getProject().getGradle().getStartParameter().getLogLevel();
        CoffeeScriptCompiler compiler = new RhinoCoffeeScriptCompiler(handleFactory, getRhinoClasspath(), logLevel, getProject().getProjectDir());

        setDidWork(compiler.compile(spec).getDidWork());
    }
}
View Full Code Here

Examples of org.hibernate.hql.QueryTranslator.compile()

    Map replacements = new HashMap();
    QueryTranslator oldQueryTranslator = null;
    try {
      QueryTranslatorFactory classic = new ClassicQueryTranslatorFactory();
      oldQueryTranslator = classic.createQueryTranslator( hql, hql, Collections.EMPTY_MAP, factory );
      oldQueryTranslator.compile( replacements, false );
    }
    catch ( Exception e ) {
      e.printStackTrace();
      throw e;
    }
View Full Code Here

Examples of org.hibernate.hql.ast.QueryTranslatorImpl.compile()

  }

  private QueryTranslatorImpl createNewQueryTranslator(String hql, Map replacements, boolean scalar, SessionFactoryImplementor factory) {
    QueryTranslatorFactory ast = new ASTQueryTranslatorFactory();
    QueryTranslatorImpl newQueryTranslator = ( QueryTranslatorImpl ) ast.createQueryTranslator( hql, hql, Collections.EMPTY_MAP, factory );
    newQueryTranslator.compile( replacements, scalar );
    return newQueryTranslator;
  }

  protected QueryTranslatorImpl createNewQueryTranslator(String hql) {
    return createNewQueryTranslator( hql, new HashMap(), false );
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.