Class JSONRowResultProcessor
- java.lang.Object
-
- org.intermine.webservice.server.core.ResultProcessor
-
- org.intermine.webservice.server.output.JSONResultProcessor
-
- org.intermine.webservice.server.output.JSONRowResultProcessor
-
public class JSONRowResultProcessor extends JSONResultProcessor
A result processor for result rows.- Author:
- Alex Kalderimis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JSONRowResultProcessor.Verbosity
-
Constructor Summary
Constructors Constructor Description JSONRowResultProcessor(InterMineAPI im)
Constructor.JSONRowResultProcessor(InterMineAPI im, JSONRowResultProcessor.Verbosity verbosity)
Construct a row result processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Iterator<? extends java.lang.Object>
getResultsIterator(java.util.Iterator<java.util.List<ResultElement>> it)
The method a processor must implement to produce a results iterator.-
Methods inherited from class org.intermine.webservice.server.output.JSONResultProcessor
write
-
-
-
-
Constructor Detail
-
JSONRowResultProcessor
public JSONRowResultProcessor(InterMineAPI im)
Constructor.- Parameters:
im
- The API settings bundle
-
JSONRowResultProcessor
public JSONRowResultProcessor(InterMineAPI im, JSONRowResultProcessor.Verbosity verbosity)
Construct a row result processor.- Parameters:
im
- The InterMine state object.verbosity
- How verbose should we be.
-
-
Method Detail
-
getResultsIterator
protected java.util.Iterator<? extends java.lang.Object> getResultsIterator(java.util.Iterator<java.util.List<ResultElement>> it)
Description copied from class:JSONResultProcessor
The method a processor must implement to produce a results iterator.- Specified by:
getResultsIterator
in classJSONResultProcessor
- Parameters:
it
- The ExportResultsIterator this iterator will use to process its data.- Returns:
- An iterator of objects.
-
-