|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.processor.BaseProcessorPlan
com.metamatrix.query.processor.xml.XMLPlan
public class XMLPlan
Field Summary |
---|
Constructor Summary | |
---|---|
XMLPlan(XMLProcessorEnvironment env)
Constructor for XMLPlan. |
Method Summary | |
---|---|
java.lang.Object |
clone()
The plan is only clonable in the pre-execution stage, not the execution state (things like program state, result sets, etc). |
void |
close()
Clean up the tuple source when the plan is closed. |
java.util.Collection |
getChildPlans()
Finds all nested plans and returns them. |
ProcessorDataManager |
getDataManager()
|
java.util.Map |
getDescriptionProperties()
Get a description as a set of properties of primitive types such as String, Integer, etc. |
GroupSymbol |
getDocumentGroup()
|
Program |
getOriginalProgram()
|
java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
java.util.Collection |
getXMLSchemas()
Returns the XML Schema |
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. |
void |
setShouldValidate(boolean validate)
Set the validation mode on this plan. |
void |
setStylesheet(java.lang.String styleSheet)
This method sets a style sheet to this object. |
void |
setXMLFormat(java.lang.String xmlFormat)
This method sets whether the documents should be returned in compact format (no extraneous whitespace). |
void |
setXMLSchemas(java.util.Collection xmlSchema)
Sets the XML schema |
java.lang.String |
toString()
|
Methods inherited from class com.metamatrix.query.processor.BaseProcessorPlan |
---|
addWarning, getAndClearWarnings, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLPlan(XMLProcessorEnvironment env)
Method Detail |
---|
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlan
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referenceProcessorPlan#initialize(ProcessorDataManager, Object)
public void reset()
ProcessorPlan
reset
in interface ProcessorPlan
reset
in class BaseProcessorPlan
public ProcessorDataManager getDataManager()
public java.util.List getOutputElements()
public void open() throws MetaMatrixComponentException
ProcessorPlan
MetaMatrixComponentException
public TupleBatch nextBatch() throws MetaMatrixComponentException, MetaMatrixProcessingException, BlockedException
ProcessorPlan
BlockedException
- indicating next batch is not available yet
MetaMatrixComponentException
- for non-business rule exception
MetaMatrixProcessingException
- for business rule exception, related
to user input or modelingProcessorPlan.nextBatch()
public void setXMLSchemas(java.util.Collection xmlSchema)
xmlSchema
- public java.util.Collection getXMLSchemas()
public void setStylesheet(java.lang.String styleSheet)
This method sets a style sheet to this object. The style sheet is used to perform transformations on XML results
styleSheet
- A string representing a xslt styleSheetpublic void setXMLFormat(java.lang.String xmlFormat)
xmlFormat
- A string giving the format in which xml results need to be returnedpublic void setShouldValidate(boolean validate)
validate
- True to validate, false to not validatepublic void close() throws MetaMatrixComponentException
MetaMatrixComponentException
ProcessorPlan.close()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in interface ProcessorPlan
clone
in class BaseProcessorPlan
public java.util.Map getDescriptionProperties()
Describable
public java.util.Collection getChildPlans()
ProcessorPlan
ProcessorPlan.getChildPlans()
public GroupSymbol getDocumentGroup()
public Program getOriginalProgram()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |