Examples of compileQuery()


Examples of com.avaje.ebeaninternal.api.SpiEbeanServer.compileQuery()

   * Compile/build the sub query.
   */
  private CQuery<?> compileSubQuery(BeanQueryRequest<?> queryRequest) {

    SpiEbeanServer ebeanServer = (SpiEbeanServer) queryRequest.getEbeanServer();
    return ebeanServer.compileQuery(subQuery, queryRequest.getTransaction());
  }

  public int queryBindHash() {
    return subQuery.queryBindHash();
  }
View Full Code Here

Examples of com.salesforce.phoenix.jdbc.PhoenixPreparedStatement.compileQuery()

        try {
            PhoenixPreparedStatement statement = conn.prepareStatement(query).unwrap(PhoenixPreparedStatement.class);
            for (Object bind : binds) {
                statement.setObject(1, bind);
            }
            QueryPlan plan = statement.compileQuery(query);
            return plan.getContext().getScan();
        } finally {
            conn.close();
        }
    }
View Full Code Here

Examples of lupos.engine.evaluators.StreamQueryEvaluator.compileQuery()

      evaluator.getArgs().set("codemap", LiteralFactory.MapType.HASHMAP);
      evaluator.getArgs().set("datastructure", Indices.DATA_STRUCT.HASHMAP);
      evaluator.getArgs().set("distinct", CommonCoreQueryEvaluator.DISTINCT.HASHSET);
      evaluator.init();

      evaluator.compileQuery(query);
      evaluator.logicalOptimization();
      evaluator.physicalOptimization();
      if (evaluator.getRootNode() instanceof Stream) {
        final Stream stream = (Stream) evaluator.getRootNode();
        stream.addNotifyStreamResult(notifyStreamResult);
View Full Code Here

Examples of lupos.engine.evaluators.StreamQueryEvaluator.compileQuery()

      evaluator.getArgs().set("result", QueryResult.TYPE.MEMORY);
      evaluator.getArgs().set("codemap", LiteralFactory.MapType.HASHMAP);
      evaluator.getArgs().set("datastructure", Indices.DATA_STRUCT.HASHMAP);
      evaluator.init();
 
      evaluator.compileQuery(sub.getQuery());
      evaluator.logicalOptimization();
      evaluator.physicalOptimization();
      if (evaluator.getRootNode() instanceof Stream) {
        Stream stream = (Stream) evaluator.getRootNode();
        stream.addNotifyStreamResult(notifyStreamResult);
View Full Code Here

Examples of lupos.engine.evaluators.StreamQueryEvaluator.compileQuery()

      evaluator.getArgs().set("result", QueryResult.TYPE.MEMORY);
      evaluator.getArgs().set("codemap", LiteralFactory.MapType.HASHMAP);
      evaluator.getArgs().set("datastructure", Indices.DATA_STRUCT.HASHMAP);
      evaluator.init();
 
      evaluator.compileQuery(sub.getQuery());
      evaluator.logicalOptimization();
      evaluator.physicalOptimization();
      if (evaluator.getRootNode() instanceof Stream) {
        Stream stream = (Stream) evaluator.getRootNode();
        stream.addNotifyStreamResult(notifyStreamResult);
View Full Code Here

Examples of lupos.rif.BasicIndexRuleEvaluator.compileQuery()

   * This is just for external use an easy way to display the result of a RIF rules application...
   */
  public static void appyRIFRules(final String ruleset, final JPanel resultpanel, final BooleanReference usePrefixes,  final ViewerPrefix prefixInstance) throws Exception {   
    final BasicIndexRuleEvaluator ruleEvaluator = new BasicIndexRuleEvaluator();
    ruleEvaluator.prepareInputData(new LinkedList<URILiteral>(), new LinkedList<URILiteral>());
    ruleEvaluator.compileQuery(ruleset);
    ruleEvaluator.logicalOptimization();
    ruleEvaluator.physicalOptimization();
    QueryResult[] resultQueryEvaluator = ruleEvaluator.getResults();
   
    ResultPanelHelper.setupResultPanel(resultpanel, resultQueryEvaluator, null, null, null, null, null, usePrefixes, prefixInstance, resultpanel);
View Full Code Here

Examples of lupos.rif.BasicIndexRuleEvaluator.compileQuery()

      Demo_Applet.this.ruleApplicationsForMaterialization = null;
      Demo_Applet.this.materializationInfo = null;
      Demo_Applet.this.inferenceRules = ((SPARQLINFERENCE)Demo_Applet.this.comboBox_sparqlInference.getSelectedItem()).getRuleSet(Demo_Applet.this.rulesets);
      if(Demo_Applet.this.inferenceRules != null){
        final BasicIndexRuleEvaluator birqe = new BasicIndexRuleEvaluator((CommonCoreQueryEvaluator<Node>)this.evaluator);
        birqe.compileQuery(Demo_Applet.this.inferenceRules);
        Demo_Applet.this.materializationInfo = new RIFDebugViewerCreator(Demo_Applet.this.webdemo != DEMO_ENUM.ECLIPSE, Demo_Applet.this.prefixInstance, Demo_Applet.this.usePrefixes,
            new RulesGetter(){
              @Override
              public List<DebugContainer<BasicOperatorByteArray>> getRuleApplications() {
                return Demo_Applet.this.ruleApplications;
View Full Code Here

Examples of net.sf.saxon.query.QueryProcessor.compileQuery()

        } else {
            Configuration configuration = new Configuration();
            StaticQueryContext staticQueryContext = new StaticQueryContext();
            QueryProcessor qp = new QueryProcessor(configuration, staticQueryContext);
            try {
                qp.compileQuery(xQuery);
            } catch (XPathException e) {
                messages.add(new YVerificationMessage(this, this +
                        "(id= " + this.getID() + ") the XQuery could not be successfully" +
                        " parsed. [" + e.getMessage() + "]",
                        YVerificationMessage.ERROR_STATUS));
View Full Code Here

Examples of net.sf.saxon.query.QueryProcessor.compileQuery()

            XMLOutputter outputter = new XMLOutputter();
            //SAXON XQuery code
            Configuration configuration = new Configuration();
            StaticQueryContext staticQueryContext = new StaticQueryContext();
            QueryProcessor qp = new QueryProcessor(configuration, staticQueryContext);
            XQueryExpression xQueryExpression = qp.compileQuery(query);
            //if SAXON worked with JDOM directly we could replace the next with:
            ///DocumentInfo saxonDocInfo = qp.buildDocument(new DocumentWrapper(_parentDecomposition.getInternalDataDocument(), null));
            DocumentInfo saxonDocInfo = qp.buildDocument(new StreamSource(
                    new StringReader(outputter.outputString(document))));
            DynamicQueryContext dynamicQueryContext = new DynamicQueryContext();
View Full Code Here

Examples of net.sf.saxon.query.QueryProcessor.compileQuery()

            XMLOutputter outputter = new XMLOutputter();
            //SAXON XQuery code
            Configuration configuration = new Configuration();
            StaticQueryContext staticQueryContext = new StaticQueryContext();
            QueryProcessor qp = new QueryProcessor(configuration, staticQueryContext);
            XQueryExpression xQueryExpression = qp.compileQuery(query);
            //if SAXON worked with JDOM directly (like it claims to) we could replace the next with:
            ///DocumentInfo saxonDocInfo = qp.buildDocument(new DocumentWrapper(_parentDecomposition.getInternalDataDocument(), null));
            DocumentInfo saxonDocInfo = qp.buildDocument(new StreamSource(
                    new StringReader(outputter.outputString(element))));
            DynamicQueryContext dynamicQueryContext = new DynamicQueryContext();
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.