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