|
||||||||||
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.xml.XMLPlan
public class XMLPlan
Field Summary | |
---|---|
static java.lang.String |
XML_COMPACT_FORMAT
XML results format: XML results displayed in compact form |
static java.lang.String |
XML_TREE_FORMAT
XML results format: XML results displayed as a tree |
Constructor Summary | |
---|---|
XMLPlan(XMLProcessorEnvironment env)
Constructor for XMLPlan. |
Method Summary | |
---|---|
XMLPlan |
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. |
ProcessorDataManager |
getDataManager()
|
PlanNode |
getDescriptionProperties()
|
GroupSymbol |
getDocumentGroup()
|
Program |
getOriginalProgram()
|
java.util.List |
getOutputElements()
Get list of resolved elements describing output columns for this plan. |
java.util.Collection<java.sql.SQLXML> |
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 |
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<java.sql.SQLXML> xmlSchema)
Sets the XML schema |
java.lang.String |
toString()
|
Methods inherited from class org.teiid.query.processor.ProcessorPlan |
---|
addWarning, getAndClearWarnings, getContext, requiresTransaction, setContext |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_TREE_FORMAT
public static final java.lang.String XML_COMPACT_FORMAT
Constructor Detail |
---|
public XMLPlan(XMLProcessorEnvironment env)
Method Detail |
---|
public void initialize(CommandContext context, ProcessorDataManager dataMgr, BufferManager bufferMgr)
ProcessorPlan
initialize
in class ProcessorPlan
context
- Process execution contextdataMgr
- Data manager referencebufferMgr
- Buffer manager referenceProcessorPlan#initialize(ProcessorDataManager, Object)
public void reset()
ProcessorPlan
reset
in class ProcessorPlan
public ProcessorDataManager getDataManager()
public java.util.List getOutputElements()
getOutputElements
in interface BatchCollector.BatchProducer
getOutputElements
in class ProcessorPlan
public void open() throws TeiidComponentException
ProcessorPlan
open
in class ProcessorPlan
TeiidComponentException
public TupleBatch nextBatch() throws TeiidComponentException, TeiidProcessingException, BlockedException
ProcessorPlan
nextBatch
in interface BatchCollector.BatchProducer
nextBatch
in class ProcessorPlan
BlockedException
- 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 setXMLSchemas(java.util.Collection<java.sql.SQLXML> xmlSchema)
xmlSchema
- public java.util.Collection<java.sql.SQLXML> getXMLSchemas()
public void setXMLFormat(java.lang.String xmlFormat)
xmlFormat
- A string giving the format in which xml results need to be returnedpublic void close() throws TeiidComponentException
close
in class ProcessorPlan
TeiidComponentException
ProcessorPlan.close()
public java.lang.String toString()
toString
in class java.lang.Object
public XMLPlan clone()
clone
in class ProcessorPlan
public PlanNode getDescriptionProperties()
getDescriptionProperties
in class ProcessorPlan
public GroupSymbol getDocumentGroup()
public Program getOriginalProgram()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |