Examples of parseQuery()


Examples of org.eigenbase.sql.parser.SqlParser.parseQuery()

        List<String> schemaPath) {
      SqlParser parser = SqlParser.create(parserFactory, queryString,
          lex.quoting, lex.unquotedCasing, lex.quotedCasing);
      SqlNode sqlNode;
      try {
        sqlNode = parser.parseQuery();
      } catch (SqlParseException e) {
        throw new RuntimeException("parse failed", e);
      }

      final OptiqCatalogReader catalogReader =
View Full Code Here

Examples of org.elasticsearch.index.query.IndexQueryParserService.parseQuery()

                scriptService, pageCacheRecycler, bigArrays, threadPool.estimatedTimeInMillisCounter()
        );
        SearchContext.setCurrent(searchContext);
        try {
            if (request.source() != null && request.source().length() > 0) {
                searchContext.parsedQuery(queryParserService.parseQuery(request.source()));
            }
            searchContext.preProcess();

            valid = true;
            if (request.explain()) {
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

  @Override
  public QueryParsingResult parseQuery(SessionFactoryImplementor sessionFactory, String queryString, Map<String, Object> namedParameters) {
    QueryParser queryParser = new QueryParser();
    MongoDBProcessingChain processingChain = createProcessingChain( sessionFactory, unwrap( namedParameters ) );

    MongoDBQueryParsingResult result = queryParser.parseQuery( queryString, processingChain );
    log.createdQuery( queryString, result );

    return result;
  }
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

      };

      SearchManager searchManager = Search.getSearchManager(cache);
      IspnLuceneProcessingChain processingChain = new IspnLuceneProcessingChain((SearchFactoryIntegrator) searchManager.getSearchFactory(), entityNamesResolver, null);
      QueryParser queryParser = new QueryParser();
      IspnLuceneQueryParsingResult parsingResult = queryParser.parseQuery(request.getJpqlString(), processingChain);

      Sort sort = null;
      if (request.getSortCriteria() != null && !request.getSortCriteria().isEmpty()) {
         SortField[] sortField = new SortField[request.getSortCriteria().size()];
         int i = 0;
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

               return isIndexed != null && isIndexed ? clazz : null;
            }
         };

         LuceneProcessingChain processingChain = new LuceneProcessingChain((SearchFactoryIntegrator) searchManager.getSearchFactory(), entityNamesResolver, null);
         LuceneQueryParsingResult parsingResult = queryParser.parseQuery(request.getJpqlString(), processingChain);

         MessageMarshaller messageMarshaller = (MessageMarshaller) serCtx.getMarshaller(parsingResult.getTargetEntity());
         messageDescriptor = serCtx.getMessageDescriptor(messageMarshaller.getTypeName());
         targetEntity = parsingResult.getTargetEntity();
         projections = parsingResult.getProjections();
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

               return ProtobufValueWrapper.class;
            }
         };

         IspnLuceneProcessingChain processingChain = new IspnLuceneProcessingChain(serCtx, (SearchFactoryIntegrator) searchManager.getSearchFactory(), entityNamesResolver, null);
         IspnLuceneQueryParsingResult parsingResult = queryParser.parseQuery(request.getJpqlString(), processingChain);
         messageDescriptor = parsingResult.getTargetType();
         targetEntity = parsingResult.getTargetEntity();
         projections = parsingResult.getProjections();

         QueryBuilder qb = searchManager.getSearchFactory().buildQueryBuilder().forEntity(targetEntity).get();
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

  @Override
  public Query getParsedQueryExecutor(OgmSession session, String queryString, Map<String, Object> namedParameters) {
    QueryParser queryParser = new QueryParser();
    MongoDBProcessingChain processingChain = createProcessingChain( session, unwrap( namedParameters ) );

    MongoDBQueryParsingResult result = queryParser.parseQuery( queryString, processingChain );
    log.createdQuery( queryString, result );

    return new MongoDBQueryImpl( result.getEntityType(), result.getQuery(), result.getProjection(), session );
  }
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

         log.tracef("JPQL string : %s", jpqlString);
      }

      LuceneProcessingChain processingChain = new LuceneProcessingChain((SearchFactoryIntegrator) searchManager.getSearchFactory(), entityNamesResolver, null);
      QueryParser queryParser = new QueryParser();
      LuceneQueryParsingResult parsingResult = queryParser.parseQuery(jpqlString, processingChain);

      Sort sort = null;
      if (sortCriteria != null && !sortCriteria.isEmpty()) {
         SortField[] sortField = new SortField[sortCriteria.size()];
         int i = 0;
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

  @Override
  public Query getParsedQueryExecutor(OgmSession session, String queryString, Map<String, Object> namedParameters) {
    QueryParser queryParser = new QueryParser();
    MongoDBProcessingChain processingChain = createProcessingChain( session, unwrap( namedParameters ) );

    MongoDBQueryParsingResult result = queryParser.parseQuery( queryString, processingChain );
    log.createdQuery( queryString, result );

    SessionImplementor sessionImplementor = (SessionImplementor) session;

    String tableName = ( (OgmEntityPersister) ( sessionImplementor
View Full Code Here

Examples of org.hibernate.hql.QueryParser.parseQuery()

      }

      SearchFactoryIntegrator searchFactory = (SearchFactoryIntegrator) searchManager.getSearchFactory();
      LuceneProcessingChain processingChain = new LuceneProcessingChain.Builder(searchFactory, entityNamesResolver).buildProcessingChainForClassBasedEntities();
      QueryParser queryParser = new QueryParser();
      LuceneQueryParsingResult parsingResult = queryParser.parseQuery(jpqlString, processingChain);

      return new EmbeddedLuceneQuery(searchManager, parsingResult, startOffset, maxResults);
   }
}
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.