Examples of QueryEngine


Examples of org.apache.jackrabbit.oak.query.QueryEngine

    private final QueryObjectModelFactoryImpl qomFactory = new QueryObjectModelFactoryImpl();
    private final QueryEngine qe;

    public QueryManagerImpl(WorkspaceImpl workspace, SessionContext<SessionImpl> sessionContext) {
        MicroKernel mk = sessionContext.getMicrokernel();
        qe = new QueryEngine(mk);
    }
View Full Code Here

Examples of org.apache.xindice.core.query.QueryEngine


    public Database() {
        super();
        docCache = new DocumentCache();
        engine = new QueryEngine(this);
        closed = true;
    }
View Full Code Here

Examples of org.jboss.dna.graph.query.QueryEngine

             */
            public QueryResults execute() {
                Batch batch = batch();
                TypeSystem typeSystem = getContext().getValueFactories().getTypeSystem();
                QueryContext context = new GraphQueryContext(schemata, typeSystem, hints, problems, variables, batch);
                QueryEngine engine = getQueryEngine();
                return engine.execute(context, query);
            }
        };
    }
View Full Code Here

Examples of org.jboss.dna.graph.query.QueryEngine

                // Submit the batch before the processing the query. No need to hold onto the batch results,
                // because each ProcessingComponent holds onto its AccessQueryRequest ...
                ((GraphQueryContext)context).getBatch().execute();
            }
        };
        return new QueryEngine(planner, optimizer, processor);
    }
View Full Code Here

Examples of org.modeshape.jcr.query.QueryEngine

                                   Schemata schemata,
                                   RepositoryIndexes indexDefns,
                                   NodeTypes nodeTypes,
                                   PlanHints hints,
                                   Map<String, Object> variables ) {
        final QueryEngine queryEngine = queryEngine();
        final QueryContext queryContext = queryEngine.createQueryContext(context, repositoryCache, workspaceNames,
                                                                         overriddenNodeCachesByWorkspaceName, schemata,
                                                                         indexDefns, nodeTypes, new BufferManager(context),
                                                                         hints, variables);
        final org.modeshape.jcr.query.model.QueryCommand command = (org.modeshape.jcr.query.model.QueryCommand)query;
        return new CancellableQuery() {
            private final Lock lock = new ReentrantLock();
            private QueryResults results;

            @Override
            public QueryResults execute() throws QueryCancelledException, RepositoryException {
                try {
                    lock.lock();
                    if (results == null) {
                        // this will block and will hold the lock until it is done ...
                        results = queryEngine.execute(queryContext, command);
                    }
                    return results;
                } finally {
                    lock.unlock();
                }
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.