public class ExplainProcessPlan extends ProcessorPlan
Constructor and Description |
---|
ExplainProcessPlan(ProcessorPlan actualPlan,
ExplainCommand explainCommand) |
Modifier and Type | Method and Description |
---|---|
ProcessorPlan |
clone()
Return a safe clone of the ProcessorPlan.
|
void |
close()
Close the plan after processing.
|
PlanNode |
getDescriptionProperties() |
List |
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.
|
void |
reset()
Reset a plan so that it can be processed again.
|
String |
toString() |
addWarning, getBuffer, getContext, hasBuffer, requiresTransaction, setContext
public ExplainProcessPlan(ProcessorPlan actualPlan, ExplainCommand explainCommand)
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlan
initialize
in class ProcessorPlan
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referencepublic List getOutputElements()
ProcessorPlan
getOutputElements
in interface BatchCollector.BatchProducer
getOutputElements
in class ProcessorPlan
public void open() throws TeiidComponentException, TeiidProcessingException
ProcessorPlan
open
in class ProcessorPlan
TeiidComponentException
TeiidProcessingException
public TupleBatch nextBatch() throws BlockedException, TeiidComponentException, TeiidProcessingException
ProcessorPlan
nextBatch
in interface BatchCollector.BatchProducer
nextBatch
in class ProcessorPlan
BlockedException
- indicating next batch is not available yetTeiidComponentException
- for non-business rule exceptionTeiidProcessingException
- for business rule exception, related
to user input or modelingpublic void close() throws TeiidComponentException
ProcessorPlan
close
in interface BatchCollector.BatchProducer
close
in class ProcessorPlan
TeiidComponentException
public ProcessorPlan clone()
ProcessorPlan
opened
or after it is closed
.clone
in class ProcessorPlan
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class ProcessorPlan
public void reset()
ProcessorPlan
reset
in class ProcessorPlan
Copyright © 2020. All rights reserved.