|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.api.results.ExportResultsIterator
public class ExportResultsIterator
An Iterator that produces data in a format suitable for exporting. The data is flattened, so if there are outer joined collections, there may be more rows than in the original results.
| Constructor Summary | |
|---|---|
ExportResultsIterator(ObjectStore os,
PathQuery pq,
java.util.Map savedBags,
BagQueryRunner bagQueryRunner)
Constructor for ExportResultsIterator. |
|
ExportResultsIterator(ObjectStore os,
PathQuery pq,
java.util.Map savedBags,
BagQueryRunner bagQueryRunner,
int batchSize)
Constructor for ExportResultsIterator. |
|
| Method Summary | |
|---|---|
protected java.util.List |
getColumns()
Allows test to access column info. |
void |
goFaster()
Switches on the goFaster mode in the objectstore for this query. |
boolean |
hasNext()
|
java.util.List<ResultElement> |
next()
|
void |
releaseGoFaster()
Switches off the goFaster mode in the objectstore for this query. |
void |
remove()
This method is not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExportResultsIterator(ObjectStore os,
PathQuery pq,
java.util.Map savedBags,
BagQueryRunner bagQueryRunner)
throws ObjectStoreException
os - an ObjectStore that the query will be run onpq - a PathQuery to runsavedBags - a Map of the bags that the query may have usedbagQueryRunner - a BagQueryRunner for any LOOKUP constraints
ObjectStoreException - if something goes wrong executing the query
public ExportResultsIterator(ObjectStore os,
PathQuery pq,
java.util.Map savedBags,
BagQueryRunner bagQueryRunner,
int batchSize)
throws ObjectStoreException
os - an ObjectStore that the query will be run onpq - a PathQuery to runsavedBags - a Map of the bags that the query may have usedbagQueryRunner - a BagQueryRunner for any LOOKUP constraintsbatchSize - the batch size for the results
ObjectStoreException - if something goes wrong executing the query| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<java.util.List<ResultElement>>public java.util.List<ResultElement> next()
next in interface java.util.Iterator<java.util.List<ResultElement>>public void remove()
remove in interface java.util.Iterator<java.util.List<ResultElement>>public void goFaster()
java.lang.RuntimeException - if something goes wrongpublic void releaseGoFaster()
java.lang.RuntimeException - if something goes wrongprotected java.util.List getColumns()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||