protected static class BaseScanOperatorExecTest.MockEarlySchemaReader extends BaseScanOperatorExecTest.BaseMockBatchReader
batchCount, batchLimit, closeCalled, openCalled, startIndex, tableLoader| Modifier | Constructor and Description |
|---|---|
protected |
MockEarlySchemaReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
next()
Read the next batch.
|
boolean |
open(SchemaNegotiator schemaNegotiator)
Setup the record reader.
|
close, makeBatch, writeRowpublic boolean open(SchemaNegotiator schemaNegotiator)
ManagedReaderschemaNegotiator - mechanism to negotiate select and table
schemas, then create the row set reader used to load data into
value vectorspublic 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.
Copyright © 2021 The Apache Software Foundation. All rights reserved.