org.intermine.webservice.server.core
Class ResultProcessor
java.lang.Object
org.intermine.webservice.server.core.ResultProcessor
public class ResultProcessor
- extends java.lang.Object
Processor of Results object for easy accessing and parsing of results to list of strings.
Actually wrapped Results object is something like proxy that can access the database.
Write method is the point where the data are fetched from database and that's why is slow.
Code example:
MemoryOutput output = new MemoryOutput();
ResultProcessor processor = new ResultProcessor(results, firstResult, maxResults);
processor.write(output);
|
Method Summary |
void |
write(java.util.Iterator<java.util.List<ResultElement>> resultIt,
Output output)
Writes results to output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultProcessor
public ResultProcessor()
- Constructor.
write
public void write(java.util.Iterator<java.util.List<ResultElement>> resultIt,
Output output)
- Writes results to output.
- Parameters:
resultIt - iterator over results rowoutput - output