HBASE-16929 Move default method of shipped to Shipper interface - revert pending finding cause for Phoenix compilation error

This commit is contained in:
tedyu 2016-10-24 01:39:02 -07:00
parent 187ff190ed
commit 97cb1d71bc
2 changed files with 10 additions and 1 deletions

View File

@ -115,4 +115,13 @@ public interface RegionScanner extends InternalScanner, Shipper {
*/ */
boolean nextRaw(List<Cell> result, ScannerContext scannerContext) boolean nextRaw(List<Cell> result, ScannerContext scannerContext)
throws IOException; 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 * Called after a batch of rows scanned and set to be returned to client. Any in between cleanup
* can be done here. * can be done here.
*/ */
default void shipped() throws IOException { } void shipped() throws IOException;
} }