protected abstract static class BaseTestScanLifecycle.BaseMockBatchReader extends Object implements ManagedReader
ManagedReader.EarlyEofException| Modifier and Type | Field and Description |
|---|---|
protected int |
batchCount |
protected int |
batchLimit |
protected int |
startIndex |
protected ResultSetLoader |
tableLoader |
| Constructor and Description |
|---|
BaseMockBatchReader(int batchLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
protected void |
makeBatch() |
boolean |
next()
Read the next batch.
|
protected int startIndex
protected int batchCount
protected int batchLimit
protected ResultSetLoader tableLoader
protected void makeBatch()
public boolean next()
ManagedReaderThis somewhat complex protocol avoids the need to allocate a final batch just to find out that no more data is available; it allows EOF to be returned along with the final batch.
next in interface ManagedReaderpublic void close()
ManagedReaderclose in interface ManagedReaderCopyright © 2021 The Apache Software Foundation. All rights reserved.