[ https://issues.apache.org/jira/browse/HBASE-28729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang resolved HBASE-28729. ------------------------------- Fix Version/s: 3.0.0-beta-2 Hadoop Flags: Incompatible change,Reviewed (was: Incompatible change) Release Note: Change InternalScanner.next method to accept List<? super ExtendedCell> rather than List<Cell>, so we do not need to cast everywhere in the code. This is a breaking change for coprocessor users, especially that if you implement your own InternalScanner. In general, we can make sure that all the elements in the return List are ExtendedCells, thus Cells, so you are free to cast them to Cells when you want to intercept the results. And all Cells created via CellBuilder are all ExtendedCells, so you are free to cast them to ExtendedCells before adding to the List, or you can cast the List to List<Cell> or even List to add Cells to it. Assignee: Duo Zhang Resolution: Fixed Pushed to master and branch-3. Thanks [~sunxin] for reviewing! > Change the generic type of List in InternalScanner.next > ------------------------------------------------------- > > Key: HBASE-28729 > URL: https://issues.apache.org/jira/browse/HBASE-28729 > Project: HBase > Issue Type: Sub-task > Components: Coprocessors, regionserver > Reporter: Duo Zhang > Assignee: Duo Zhang > Priority: Major > Labels: pull-request-available > Fix For: 3.0.0-beta-2 > > > Plan to change it from List<Cell> to List<? super ExtendedCell>, so we could > pass both List<Cell> and List<ExtendedCell> to it, or even List<RawCell> for > coprocessors. > This could save a lot of casting in our main code. > This is an incompatible change for coprocessors, so it will only go into > branch-3+, and will be marked as incompatible change. -- This message was sent by Atlassian Jira (v8.20.10#820010)