protected static class BaseScanTest.EofOnOpenReader extends Object implements ManagedReader
ManagedReader.EarlyEofException| Constructor and Description |
|---|
EofOnOpenReader(SchemaNegotiator schemaNegotiator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
boolean |
next()
Read the next batch.
|
public EofOnOpenReader(SchemaNegotiator schemaNegotiator) 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 ManagedReaderpublic void close()
ManagedReaderclose in interface ManagedReaderCopyright © 2021 The Apache Software Foundation. All rights reserved.