|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.processor.ProcessorPlan
org.teiid.query.processor.proc.ProcedurePlan
public class ProcedurePlan
| Constructor Summary | |
|---|---|
ProcedurePlan(Program originalProgram)
Constructor for ProcedurePlan. |
|
| Method Summary | |
|---|---|
ProcessorPlan |
clone()
Return a safe clone of the ProcessorPlan. |
void |
close()
Close the plan after processing. |
void |
executePlan(ProcessorPlan command,
java.lang.String rsName,
java.util.Map<ElementSymbol,ElementSymbol> procAssignments,
boolean keepRs)
|
CommandContext |
getContext()
Get the processor context, which can be modified. |
java.util.List |
getCurrentRow(java.lang.String rsName)
|
VariableContext |
getCurrentVariableContext()
Get the current VariavleContext on this environment. |
ProcessorDataManager |
getDataManager()
|
PlanNode |
getDescriptionProperties()
|
Program |
getOriginalProgram()
|
java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
java.util.List |
getSchema(java.lang.String rsName)
Get the schema from the tuple source that represents the columns in a result set |
java.util.Set |
getTempContext()
|
TempTableStore |
getTempTableStore()
|
void |
incrementProgramCounter()
|
void |
initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
Initialize the plan with some required pieces of data for making queries. |
protected boolean |
isBatchFull()
|
boolean |
isUpdateProcedure()
|
boolean |
iterateCursor(java.lang.String rsName)
|
TupleBatch |
nextBatch()
Get a batch of results or possibly an Exception. |
void |
open()
Open the plan for processing. |
Program |
peek()
|
void |
pop()
|
protected TupleBatch |
pullBatch()
|
void |
push(Program program)
|
void |
removeResults(java.lang.String rsName)
|
boolean |
requiresTransaction(boolean transactionalReads)
|
void |
reset()
Reset a plan so that it can be processed again. |
boolean |
resultSetExists(java.lang.String rsName)
|
void |
setImplicitParams(java.util.Map<ElementSymbol,Reference> implicitParams)
|
void |
setMetadata(QueryMetadataInterface metadata)
|
void |
setOutputElements(java.util.List outputElements)
|
protected void |
setParameterValue(ElementSymbol param,
VariableContext context,
java.lang.Object value)
|
void |
setParams(java.util.LinkedHashMap<ElementSymbol,Expression> params)
|
void |
setRequiresTransaction(boolean requiresTransaction)
|
void |
setUpdateProcedure(boolean b)
|
protected void |
terminateBatches()
|
java.lang.String |
toString()
|
| Methods inherited from class org.teiid.query.processor.ProcessorPlan |
|---|
addWarning, getAndClearWarnings, setContext |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcedurePlan(Program originalProgram)
| Method Detail |
|---|
public Program getOriginalProgram()
public void initialize(CommandContext context,
ProcessorDataManager dataMgr,
BufferManager bufferMgr)
ProcessorPlan
initialize in class ProcessorPlancontext - Process execution contextdataMgr - Data manager referencebufferMgr - Buffer manager referenceProcessorPlan#initialize(ProcessorDataManager, Object)public void reset()
ProcessorPlan
reset in class ProcessorPlanpublic ProcessorDataManager getDataManager()
public void open()
throws TeiidProcessingException,
TeiidComponentException
ProcessorPlan
open in class ProcessorPlanTeiidComponentException
TeiidProcessingException
protected void setParameterValue(ElementSymbol param,
VariableContext context,
java.lang.Object value)
public TupleBatch nextBatch()
throws TeiidComponentException,
TeiidProcessingException,
BlockedException
ProcessorPlan
nextBatch in interface BatchCollector.BatchProducernextBatch in class ProcessorPlanBlockedException - indicating next batch is not available yet
TeiidComponentException - for non-business rule exception
TeiidProcessingException - for business rule exception, related
to user input or modelingProcessorPlan.nextBatch()
public void close()
throws TeiidComponentException
ProcessorPlan
close in class ProcessorPlanTeiidComponentExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic ProcessorPlan clone()
ProcessorPlanopened or after it is closed.
clone in class ProcessorPlanprotected void terminateBatches()
protected boolean isBatchFull()
protected TupleBatch pullBatch()
public PlanNode getDescriptionProperties()
getDescriptionProperties in class ProcessorPlanpublic void setMetadata(QueryMetadataInterface metadata)
public void setParams(java.util.LinkedHashMap<ElementSymbol,Expression> params)
public void setImplicitParams(java.util.Map<ElementSymbol,Reference> implicitParams)
public VariableContext getCurrentVariableContext()
Get the current VariavleContext on this environment.
The VariableContext is updated with variables and their values by
ProgramInstructions that are part of the ProcedurePlan that use
this environment.
VariariableContext.
public void executePlan(ProcessorPlan command,
java.lang.String rsName,
java.util.Map<ElementSymbol,ElementSymbol> procAssignments,
boolean keepRs)
throws TeiidComponentException,
TeiidProcessingException
TeiidComponentException
TeiidProcessingException
public void pop()
throws TeiidComponentException
TeiidComponentExceptionpublic void push(Program program)
public void incrementProgramCounter()
throws TeiidComponentException
TeiidComponentExceptionpublic java.util.Set getTempContext()
public java.util.List getCurrentRow(java.lang.String rsName)
throws TeiidComponentException
TeiidComponentException
public boolean iterateCursor(java.lang.String rsName)
throws TeiidComponentException,
TeiidProcessingException
TeiidComponentException
TeiidProcessingExceptionpublic void removeResults(java.lang.String rsName)
public java.util.List getSchema(java.lang.String rsName)
throws TeiidComponentException
rsName - the ResultSet name (not a temp group)
QueryProcessorException - if the list of elements is null
TeiidComponentExceptionpublic boolean resultSetExists(java.lang.String rsName)
public CommandContext getContext()
ProcessorPlan
getContext in class ProcessorPlanpublic boolean isUpdateProcedure()
public void setUpdateProcedure(boolean b)
b - public java.util.List getOutputElements()
ProcessorPlan
getOutputElements in interface BatchCollector.BatchProducergetOutputElements in class ProcessorPlanpublic void setOutputElements(java.util.List outputElements)
public TempTableStore getTempTableStore()
public Program peek()
public void setRequiresTransaction(boolean requiresTransaction)
public boolean requiresTransaction(boolean transactionalReads)
requiresTransaction in class ProcessorPlan
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||