protected static class BaseTestScanLifecycle.MockThreeColReader extends Object implements ManagedReader
ManagedReader.EarlyEofException| Modifier and Type | Field and Description |
|---|---|
static TupleMetadata |
READER_SCHEMA |
| Constructor and Description |
|---|
MockThreeColReader(SchemaNegotiator negotiator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
boolean |
next()
Read the next batch.
|
public static final TupleMetadata READER_SCHEMA
public MockThreeColReader(SchemaNegotiator negotiator)
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.