Examples of collectTuples()


Examples of org.teiid.query.processor.BatchCollector.collectTuples()

        QueryProcessor processor = new QueryProcessor(plan, context, bufferMgr, dataMgr);
        processor.setNonBlocking(true);
        BatchCollector collector = processor.createBatchCollector();
        TeiidComponentException failOnDefaultException = null;
        try{
            collector.collectTuples();
        } catch (TeiidComponentException e){
            failOnDefaultException = e;
        }
       
        assertNotNull("Query processing should have failed on default of choice node.", failOnDefaultException); //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.query.processor.BatchCollector.collectTuples()

        QueryProcessor processor = new QueryProcessor(plan, context, bufferMgr, dataManager);
        BatchCollector collector = processor.createBatchCollector();
        TupleBuffer tsID = null;
        while(true) {
            try {
                tsID = collector.collectTuples();        
                break;
            } catch(BlockedException e) {
            }
        }
       
View Full Code Here

Examples of org.teiid.query.processor.BatchCollector.collectTuples()

    Determinism determinismLevel = context.resetDeterminismLevel();
    QueryProcessor qp = context.getQueryProcessorFactory().createQueryProcessor(proc.toString(), fullName.toUpperCase(), context);
    qp.setNonBlocking(true);
    qp.getContext().setDataObjects(null);
    BatchCollector bc = qp.createBatchCollector();
    TupleBuffer tb = bc.collectTuples();
    CachedResults cr = new CachedResults();
    cr.setResults(tb, qp.getProcessorPlan());
    cr.setHint(hint);
    if (hint != null && hint.getDeterminism() != null) {
      LogManager.logTrace(LogConstants.CTX_DQP, new Object[] { "Cache hint modified the query determinism from ",determinismLevel, " to ", hint.getDeterminism() }); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.teiid.query.processor.BatchCollector.collectTuples()

        qp.setNonBlocking(true);
        qp.getContext().setDataObjects(null);
        if (distributedCache != null) {
          CachedResults cr = new CachedResults();
          BatchCollector bc = qp.createBatchCollector();
          TupleBuffer tb = bc.collectTuples();
          cr.setResults(tb, qp.getProcessorPlan());
          touchTable(context, fullName, true);
          this.distributedCache.put(cid, Determinism.VDB_DETERMINISTIC, cr, info.getTtl());
          ts = tb.createIndexedTupleSource();
        } else {
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementContext.collectTuples()

                            return items;
                        }

                        @Override
                        public LinkedList<String[]> collectTuples(String key) {
                            return delegate.collectTuples(key);
                        }

                    });

                    op.get(OP).set(READ_RESOURCE_DESCRIPTION_OPERATION);
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementContext.collectTuples()

                        return items;
                    }

                    @Override
                    public LinkedList<String[]> collectTuples(String key) {
                        return delegate.collectTuples(key);
                    }
                });
                op.get(OP).set(READ_OPERATION_DESCRIPTION_OPERATION);
                op.get(NAME).set(operationName);
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementContext.collectTuples()

                            return items;
                        }

                        @Override
                        public LinkedList<String[]> collectTuples(String key) {
                            return delegate.collectTuples(key);
                        }

                    });

                    op.get(OP).set(READ_RESOURCE_DESCRIPTION_OPERATION);
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementContext.collectTuples()

                        return items;
                    }

                    @Override
                    public LinkedList<String[]> collectTuples(String key) {
                        return delegate.collectTuples(key);
                    }
                });
                op.get(OP).set(READ_OPERATION_DESCRIPTION_OPERATION);
                op.get(NAME).set(operationName);
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.