HBASE-16929 Move default method of shipped to Shipper interface
This commit is contained in:
parent
6415137574
commit
ac415f85f3
|
@ -115,13 +115,4 @@ public interface RegionScanner extends InternalScanner, Shipper {
|
|||
*/
|
||||
boolean nextRaw(List<Cell> result, ScannerContext scannerContext)
|
||||
throws IOException;
|
||||
|
||||
/**
|
||||
* Empty implementation to provide compatibility for user migrating from 1.X
|
||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-16626">HBASE-16626</a>
|
||||
*/
|
||||
@Override
|
||||
default void shipped() throws IOException {
|
||||
// do nothing
|
||||
}
|
||||
}
|
|
@ -33,5 +33,5 @@ public interface Shipper {
|
|||
* Called after a batch of rows scanned and set to be returned to client. Any in between cleanup
|
||||
* can be done here.
|
||||
*/
|
||||
void shipped() throws IOException;
|
||||
default void shipped() throws IOException { }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue