public class ForEachRowPlan extends ProcessorPlan
| Constructor and Description |
|---|
ForEachRowPlan() |
| Modifier and Type | Method and Description |
|---|---|
ProcessorPlan |
clone()
Return a safe clone of the ProcessorPlan.
|
void |
close()
Close the plan after processing.
|
List<Expression> |
getOutputElements()
Get list of resolved elements describing output columns for this plan.
|
void |
initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
Initialize the plan with some required pieces of data for making
queries.
|
TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception.
|
void |
open()
Open the plan for processing.
|
Boolean |
requiresTransaction(boolean transactionalReads) |
void |
reset()
Reset a plan so that it can be processed again.
|
void |
setLookupMap(Map<Expression,Integer> symbolMap) |
void |
setParams(Map<ElementSymbol,Expression> params) |
void |
setQueryPlan(ProcessorPlan queryPlan) |
void |
setRowProcedure(ProcedurePlan rowProcedure) |
void |
setSingleRow(boolean singleRow) |
void |
setTupleSource(TupleSource tupleSource) |
String |
toString() |
addWarning, getBuffer, getContext, getDescriptionProperties, hasBuffer, setContextpublic ProcessorPlan clone()
ProcessorPlanopened or after it is closed.clone in class ProcessorPlanpublic void close()
throws TeiidComponentException
ProcessorPlanclose in interface BatchCollector.BatchProducerclose in class ProcessorPlanTeiidComponentExceptionpublic List<Expression> getOutputElements()
ProcessorPlangetOutputElements in interface BatchCollector.BatchProducergetOutputElements in class ProcessorPlanpublic void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlaninitialize in class ProcessorPlancontext - Process execution contextdataMgr - Data manager referencebufferMgr - Buffer manager referencepublic TupleBatch nextBatch() throws BlockedException, TeiidComponentException, TeiidProcessingException
ProcessorPlannextBatch in interface BatchCollector.BatchProducernextBatch in class ProcessorPlanBlockedException - indicating next batch is not available yetTeiidComponentException - for non-business rule exceptionTeiidProcessingException - for business rule exception, related
to user input or modelingpublic void open()
throws TeiidComponentException,
TeiidProcessingException
ProcessorPlanopen in class ProcessorPlanTeiidComponentExceptionTeiidProcessingExceptionpublic void setQueryPlan(ProcessorPlan queryPlan)
public void setRowProcedure(ProcedurePlan rowProcedure)
public void setParams(Map<ElementSymbol,Expression> params)
public void setLookupMap(Map<Expression,Integer> symbolMap)
public void reset()
ProcessorPlanreset in class ProcessorPlanpublic Boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProcessorPlanpublic void setTupleSource(TupleSource tupleSource)
public void setSingleRow(boolean singleRow)
Copyright © 2019. All rights reserved.