protected boolean prepareNextCommand(Command atomicCommand) throws TeiidComponentException, TeiidProcessingException { rewriteAndEvaluate(atomicCommand, getEvaluator(Collections.emptyMap()), this.getContext(), this.getContext().getMetadata()); return RelationalNodeUtil.shouldExecute(atomicCommand, true); }
protected boolean prepareNextCommand(Command atomicCommand) throws TeiidComponentException, TeiidProcessingException { rewriteAndEvaluate(atomicCommand, getEvaluator(Collections.emptyMap()), this.getContext(), this.getContext().getMetadata()); return RelationalNodeUtil.shouldExecute(atomicCommand, true); }
protected boolean prepareNextCommand(Command atomicCommand) throws TeiidComponentException, TeiidProcessingException { rewriteAndEvaluate(atomicCommand, getEvaluator(Collections.emptyMap()), this.getContext(), this.getContext().getMetadata()); return RelationalNodeUtil.shouldExecute(atomicCommand, true); }
RelationalPlan value = entry.getValue(); value.reset(); state.processor = new QueryProcessor(value, getContext().clone(), getBufferManager(), getDataManager()); state.collector = state.processor.createBatchCollector(); this.evaluatedPlans.put(entry.getKey(), state); VDBMetaData vdb = getContext().getVdb(); ModelMetaData model = vdb.getModel(getModelName()); List<String> sources = model.getSourceNames(); RelationalNode node = multiSourceModify(this, connectorBindingExpression, getContext().getMetadata(), sourceNames); RelationalPlan.connectExternal(node, getContext(), getDataManager(), getBufferManager()); this.addChild(node); VDBMetaData vdb = getContext().getVdb(); ModelMetaData model = vdb.getModel(getModelName()); List<String> sources = model.getSourceNames(); MultiSourceElementReplacementVisitor.visit(replacement, getContext().getMetadata(), processingCommand); } while (!processCommandsIndividually() && hasNextCommand() && this.tupleSources.size() < Math.max(Math.min(MAX_CONCURRENT, this.getContext().getUserRequestSourceConcurrency()), this.getContext().getUserRequestSourceConcurrency()/2));
RelationalPlan value = entry.getValue(); value.reset(); state.processor = new QueryProcessor(value, getContext().clone(), getBufferManager(), getDataManager()); state.collector = state.processor.createBatchCollector(); this.evaluatedPlans.put(entry.getKey(), state); VDBMetaData vdb = getContext().getVdb(); ModelMetaData model = vdb.getModel(getModelName()); List<String> sources = model.getSourceNames(); RelationalNode node = multiSourceModify(this, connectorBindingExpression, getContext().getMetadata(), sourceNames); RelationalPlan.connectExternal(node, getContext(), getDataManager(), getBufferManager()); this.addChild(node); VDBMetaData vdb = getContext().getVdb(); ModelMetaData model = vdb.getModel(getModelName()); List<String> sources = model.getSourceNames(); MultiSourceElementReplacementVisitor.visit(replacement, getContext().getMetadata(), processingCommand); } while (!processCommandsIndividually() && hasNextCommand() && this.tupleSources.size() < Math.max(Math.min(MAX_CONCURRENT, this.getContext().getUserRequestSourceConcurrency()), this.getContext().getUserRequestSourceConcurrency()/2));
RelationalPlan value = entry.getValue(); value.reset(); state.processor = new QueryProcessor(value, getContext().clone(), getBufferManager(), getDataManager()); state.collector = state.processor.createBatchCollector(); this.evaluatedPlans.put(entry.getKey(), state); VDBMetaData vdb = getContext().getVdb(); ModelMetaData model = vdb.getModel(getModelName()); List<String> sources = model.getSourceNames(); RelationalNode node = multiSourceModify(this, connectorBindingExpression, getContext().getMetadata(), sourceNames); RelationalPlan.connectExternal(node, getContext(), getDataManager(), getBufferManager()); this.addChild(node); VDBMetaData vdb = getContext().getVdb(); ModelMetaData model = vdb.getModel(getModelName()); List<String> sources = model.getSourceNames(); MultiSourceElementReplacementVisitor.visit(replacement, getContext().getMetadata(), processingCommand); } while (!processCommandsIndividually() && hasNextCommand() && this.tupleSources.size() < Math.max(Math.min(MAX_CONCURRENT, this.getContext().getUserRequestSourceConcurrency()), this.getContext().getUserRequestSourceConcurrency()/2));
private void registerRequest(Command atomicCommand) throws TeiidComponentException, TeiidProcessingException { if (shouldEvaluate) { projection = null; minimizeProject(atomicCommand); } int limit = -1; if (getParent() instanceof LimitNode) { LimitNode parent = (LimitNode)getParent(); if (parent.getLimit() > 0) { limit = parent.getLimit() + parent.getOffset(); } } RegisterRequestParameter param = new RegisterRequestParameter(connectorBindingId, getID(), limit); param.info = info; param.fetchSize = this.getBatchSize(); RowBasedSecurityHelper.checkConstraints(atomicCommand, getEvaluator(Collections.emptyMap())); tupleSources.add(getDataManager().registerRequest(getContext(), atomicCommand, modelName, param)); if (tupleSources.size() > 1) { reserved += getBufferManager().reserveBuffers(schemaSize, BufferReserveMode.FORCE); } }
private void registerRequest(Command atomicCommand) throws TeiidComponentException, TeiidProcessingException { if (shouldEvaluate) { projection = null; minimizeProject(atomicCommand); } int limit = -1; if (getParent() instanceof LimitNode) { LimitNode parent = (LimitNode)getParent(); if (parent.getLimit() > 0) { limit = parent.getLimit() + parent.getOffset(); } } RegisterRequestParameter param = new RegisterRequestParameter(connectorBindingId, getID(), limit); param.info = info; param.fetchSize = this.getBatchSize(); RowBasedSecurityHelper.checkConstraints(atomicCommand, getEvaluator(Collections.emptyMap())); tupleSources.add(getDataManager().registerRequest(getContext(), atomicCommand, modelName, param)); if (tupleSources.size() > 1) { reserved += getBufferManager().reserveBuffers(schemaSize, BufferReserveMode.FORCE); } }
private void registerRequest(Command atomicCommand) throws TeiidComponentException, TeiidProcessingException { if (shouldEvaluate) { projection = null; minimizeProject(atomicCommand); } int limit = -1; if (getParent() instanceof LimitNode) { LimitNode parent = (LimitNode)getParent(); if (parent.getLimit() > 0) { limit = parent.getLimit() + parent.getOffset(); } } RegisterRequestParameter param = new RegisterRequestParameter(connectorBindingId, getID(), limit); param.info = info; param.fetchSize = this.getBatchSize(); RowBasedSecurityHelper.checkConstraints(atomicCommand, getEvaluator(Collections.emptyMap())); tupleSources.add(getDataManager().registerRequest(getContext(), atomicCommand, modelName, param)); if (tupleSources.size() > 1) { reserved += getBufferManager().reserveBuffers(schemaSize, BufferReserveMode.FORCE); } }
return pullBatch(); throw BlockedException.block(getContext().getRequestId(), "Blocking on source request(s)."); //$NON-NLS-1$
return pullBatch(); throw BlockedException.block(getContext().getRequestId(), "Blocking on source request(s)."); //$NON-NLS-1$
return pullBatch(); throw BlockedException.block(getContext().getRequestId(), "Blocking on source request(s)."); //$NON-NLS-1$