public Object clone(){ PlanExecutionNode clonedNode = new PlanExecutionNode(); copyTo(clonedNode); return clonedNode; }
@Override protected TupleBatch pullBatch() { if (isLastBatch()) { super.addBatchRow(Arrays.asList(insertCount)); } return super.pullBatch(); }
@Override public void closeDirect() { super.closeDirect(); this.currentBatch = null; }
if (!needsProcessing) { while (true) { if (prepareNextCommand()) { needsProcessing = true; break; if (!hasNextCommand()) { needsProcessing = false; break; terminateBatches(); return pullBatch(); addBatchRow(tuple); if (hasNextCommand()) { resetPlan(); } else { terminateBatches(); return pullBatch();
public void open() throws TeiidComponentException, TeiidProcessingException { super.open(); // Initialize plan for execution CommandContext subContext = getContext().clone(); subContext.pushVariableContext(new VariableContext()); plan.initialize(subContext, getDataManager(), this.getBufferManager()); if (openPlanImmediately() && prepareNextCommand()) { needsProcessing = true; plan.open(); isOpen = true; } }
peNode = new PlanExecutionNode(getID()); peNode.setProcessorPlan(plan); processNode = peNode;
@Override public Boolean requiresTransaction(boolean transactionalReads) { return getProcessorPlan().requiresTransaction(transactionalReads); }
public Object clone(){ InsertPlanExecutionNode clonedNode = new InsertPlanExecutionNode(super.getID(), this.metadata); copyTo(clonedNode); return clonedNode; }
protected void copyTo(InsertPlanExecutionNode target) { target.references = references; super.copyTo(target); }
if (!needsProcessing) { while (true) { if (prepareNextCommand()) { needsProcessing = true; break; if (!hasNextCommand()) { needsProcessing = false; break; terminateBatches(); return pullBatch(); addBatchRow(tuple); if (hasNextCommand()) { resetPlan(); } else { terminateBatches(); return pullBatch();
public void open() throws TeiidComponentException, TeiidProcessingException { super.open(); // Initialize plan for execution CommandContext subContext = getContext().clone(); subContext.pushVariableContext(new VariableContext()); plan.initialize(subContext, getDataManager(), this.getBufferManager()); if (openPlanImmediately() && prepareNextCommand()) { needsProcessing = true; plan.open(); isOpen = true; } }
peNode = new PlanExecutionNode(getID()); peNode.setProcessorPlan(plan); processNode = peNode;
@Override public Boolean requiresTransaction(boolean transactionalReads) { return getProcessorPlan().requiresTransaction(transactionalReads); }
public Object clone(){ InsertPlanExecutionNode clonedNode = new InsertPlanExecutionNode(super.getID(), this.metadata); copyTo(clonedNode); return clonedNode; }
protected void copyTo(InsertPlanExecutionNode target) { target.references = references; super.copyTo(target); }
if (!needsProcessing) { while (true) { if (prepareNextCommand()) { needsProcessing = true; break; if (!hasNextCommand()) { needsProcessing = false; break; terminateBatches(); return pullBatch(); addBatchRow(tuple); if (hasNextCommand()) { resetPlan(); } else { terminateBatches(); return pullBatch();
public void open() throws TeiidComponentException, TeiidProcessingException { super.open(); // Initialize plan for execution CommandContext subContext = getContext().clone(); subContext.pushVariableContext(new VariableContext()); plan.initialize(subContext, getDataManager(), this.getBufferManager()); if (openPlanImmediately() && prepareNextCommand()) { needsProcessing = true; plan.open(); isOpen = true; } }
public Object clone(){ PlanExecutionNode clonedNode = new PlanExecutionNode(); copyTo(clonedNode); return clonedNode; }
@Override protected TupleBatch pullBatch() { if (isLastBatch()) { super.addBatchRow(Arrays.asList(insertCount)); } return super.pullBatch(); }
peNode = new PlanExecutionNode(getID()); peNode.setProcessorPlan(plan); processNode = peNode;