Class RowsResult
- java.lang.Object
-
- org.teiid.translator.google.api.result.RowsResult
-
public class RowsResult extends Object implements Iterable<SheetRow>
This class is iterable result of any batchable service. RowsResult contains logic that will retrieve batches of results so that memory consumption is optimal. This Iterable can be set so that it skips first N elements (setOffset) and/or limits the amount of iterated elements (setLimit)- Author:
- fnguyen
-
-
Constructor Summary
Constructors Constructor Description RowsResult(PartialResultExecutor queryStrategy, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<SheetRow>
iterator()
void
setLimit(int i)
void
setOffset(int i)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-