protected static class BaseTestScanLifecycle.FailingReader extends Object implements ManagedReader
ManagedReader.EarlyEofException
Modifier and Type | Field and Description |
---|---|
CustomErrorContext |
ec |
String |
failType |
Constructor and Description |
---|
FailingReader(SchemaNegotiator sn,
String failType) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release resources.
|
boolean |
next()
Read the next batch.
|
public final String failType
public final CustomErrorContext ec
public FailingReader(SchemaNegotiator sn, String failType)
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.