com.metamatrix.connector.xml.streaming
Class StreamingResultsProducer

java.lang.Object
  extended by com.metamatrix.connector.xml.streaming.StreamingResultsProducer

public class StreamingResultsProducer
extends java.lang.Object

Converts a XML InputStream into an List containing results based upon the metadata from the ExecutionInfo. Elements of the List are Lists that represent rows in the table.


Constructor Summary
StreamingResultsProducer(ExecutionInfo info, XMLConnectorState state)
           
 
Method Summary
 java.util.List<java.lang.Object[]> getResult(Document xml, java.util.List<java.lang.String> xpaths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingResultsProducer

public StreamingResultsProducer(ExecutionInfo info,
                                XMLConnectorState state)
                         throws ConnectorException
Throws:
ConnectorException
Method Detail

getResult

public java.util.List<java.lang.Object[]> getResult(Document xml,
                                                    java.util.List<java.lang.String> xpaths)
                                             throws ConnectorException
Parameters:
xml - the xml Document
xpaths - the paths defined at the table level
Returns:
result set rows
Throws:
ConnectorException


Copyright © 2009. All Rights Reserved.