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