LogManager.logInfo(LogConstants.CTX_MATVIEWS, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30012, matViewName, Arrays.toString(params))); qp = context.getQueryProcessorFactory().createQueryProcessor(queryString, matViewName.toUpperCase(), context, params); ts = new BatchCollector.BatchProducerTupleSource(qp);
LogManager.logInfo(LogConstants.CTX_MATVIEWS, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30012, matViewName, Arrays.toString(params))); qp = context.getQueryProcessorFactory().createQueryProcessor(queryString, matViewName.toUpperCase(), context, params); ts = new BatchCollector.BatchProducerTupleSource(qp);
LogManager.logInfo(LogConstants.CTX_MATVIEWS, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30012, matViewName, Arrays.toString(params))); qp = context.getQueryProcessorFactory().createQueryProcessor(queryString, matViewName.toUpperCase(), context, params); ts = new BatchCollector.BatchProducerTupleSource(qp);
ts = new BatchCollector.BatchProducerTupleSource(this.source, this.buffer.getRowCount() + 1); } else {
ts = new BatchCollector.BatchProducerTupleSource(this.source, this.buffer.getRowCount() + 1); } else {
String transformation = metadata.getVirtualPlan(group.getMetadataID()).getQuery(); qp = context.getQueryProcessorFactory().createQueryProcessor(transformation, fullName, context); insertTupleSource = new BatchCollector.BatchProducerTupleSource(qp);
String transformation = metadata.getVirtualPlan(group.getMetadataID()).getQuery(); qp = context.getQueryProcessorFactory().createQueryProcessor(transformation, fullName, context); insertTupleSource = new BatchCollector.BatchProducerTupleSource(qp);
String transformation = metadata.getVirtualPlan(group.getMetadataID()).getQuery(); qp = context.getQueryProcessorFactory().createQueryProcessor(transformation, fullName, context); insertTupleSource = new BatchCollector.BatchProducerTupleSource(qp);
ts = new BatchCollector.BatchProducerTupleSource(this.source, this.buffer.getRowCount() + 1); } else {
workingQp = new QueryProcessor(recursive, this.queryProcessor.getContext().clone(), this.queryProcessor.getBufferManager(), this.queryProcessor.getProcessorDataManager()); this.iterator = new BatchProducerTupleSource(workingQp);
workingQp = new QueryProcessor(recursive, this.queryProcessor.getContext().clone(), this.queryProcessor.getBufferManager(), this.queryProcessor.getProcessorDataManager()); this.iterator = new BatchProducerTupleSource(workingQp);
workingQp = new QueryProcessor(recursive, this.queryProcessor.getContext().clone(), this.queryProcessor.getBufferManager(), this.queryProcessor.getProcessorDataManager()); this.iterator = new BatchProducerTupleSource(workingQp);
@Override public void open() throws TeiidComponentException, TeiidProcessingException { TransactionContext tc = this.getContext().getTransactionContext(); if (tc != null && tc.getTransactionType() == Scope.NONE && queryPlan != null && !Boolean.FALSE.equals(queryPlan.requiresTransaction(false))) { //start a transaction - if not each of the row plans will //be executed in it's own transaction, which is bad for performance //TODO: should probably allow non-atomic row plans //the parser accepts a trigger block without atomic //but the spec mandates it - and we treat it as atomic //either way //TODO: for non-transactional environments this will //trigger an error this.getContext().getTransactionServer().begin(tc); this.planContext = tc; } if (queryPlan != null) { queryProcessor = new QueryProcessor(queryPlan, getContext().clone(), this.bufferMgr, this.dataMgr); tupleSource = new BatchCollector.BatchProducerTupleSource(queryProcessor); } }
public TableProcessor(QueryProcessor queryProcessor, List<ElementSymbol> columns) { this.queryProcessor = queryProcessor; this.columns = columns; this.iterator = new BatchProducerTupleSource(queryProcessor); }
public TableProcessor(QueryProcessor queryProcessor, List<ElementSymbol> columns) { this.queryProcessor = queryProcessor; this.columns = columns; this.iterator = new BatchProducerTupleSource(queryProcessor); }
public TableProcessor(QueryProcessor queryProcessor, List<ElementSymbol> columns) { this.queryProcessor = queryProcessor; this.columns = columns; this.iterator = new BatchProducerTupleSource(queryProcessor); }