protected static class BaseTestScanLifecycle.NoDataReader extends BaseTestScanLifecycle.BaseMockBatchReader
ManagedReader.EarlyEofExceptionbatchCount, batchLimit, startIndex, tableLoader| Constructor and Description |
|---|
NoDataReader(SchemaNegotiator sn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
next()
Read the next batch.
|
close, makeBatchpublic NoDataReader(SchemaNegotiator sn) throws ManagedReader.EarlyEofException
ManagedReader.EarlyEofExceptionpublic 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 ManagedReadernext in class BaseTestScanLifecycle.BaseMockBatchReaderCopyright © 2021 The Apache Software Foundation. All rights reserved.