|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessorPlan
This class represents a processor plan. It is generic in that it abstracts the interface to the plan by the processor, meaning that the actual implementation of the plan or the types of processing done by the plan is not important to the processor.
All the implementations of this interface need to implement clone()
method. The plan is only clonable in the pre or post-processing stage, not
during the processing state (things like program state, result sets, etc).
It's only safe to clone in between query processings. In other words, it's
only safe to call clone()
before the call to open()
or after
the call to close()
.
Field Summary |
---|
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a safe clone of the ProcessorPlan. |
void |
close()
Close the plan after processing. |
java.util.List<java.lang.Exception> |
getAndClearWarnings()
Get all warnings found while processing this plan. |
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
CommandContext |
getContext()
Get the processor context, which can be modified. |
java.util.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. |
Methods inherited from interface com.metamatrix.query.processor.Describable |
---|
getDescriptionProperties |
Method Detail |
---|
void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referencejava.util.List<java.lang.Exception> getAndClearWarnings()
void reset()
java.util.List getOutputElements()
CommandContext getContext()
void open() throws MetaMatrixComponentException, MetaMatrixProcessingException
MetaMatrixComponentException
MetaMatrixProcessingException
TupleBatch nextBatch() throws BlockedException, MetaMatrixComponentException, MetaMatrixProcessingException
BlockedException
- indicating next batch is not available yet
MetaMatrixComponentException
- for non-business rule exception
MetaMatrixProcessingException
- for business rule exception, related
to user input or modelingvoid close() throws MetaMatrixComponentException
MetaMatrixComponentException
java.lang.Object clone()
opened
or after it is closed
.
java.util.Collection getChildPlans()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |