HBASE-16929 Move default method of shipped to Shipper interface

This commit is contained in:
tedyu 2016-10-21 17:23:07 -07:00
parent 6415137574
commit ac415f85f3
2 changed files with 1 additions and 10 deletions

View File

@ -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
}
}

View File

@ -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 { }
}