You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "kadirozde (via GitHub)" <gi...@apache.org> on 2024/10/10 04:45:23 UTC
Re: [PR] PHOENIX-5117 : Return the count of rows scanned in HBase [phoenix]
kadirozde commented on code in PR #1936:
URL: https://github.com/apache/phoenix/pull/1936#discussion_r1794642687
##########
phoenix-core-server/src/main/java/org/apache/phoenix/iterate/NonAggregateRegionScannerFactory.java:
##########
@@ -298,6 +303,24 @@ static OrderedResultIterator deserializeFromScan(Scan scan, RegionScanner s,
}
}
+ private static class IteratorAndContext {
Review Comment:
I did not understand what we are achieving here. OrderedResultIterator is used in both client and server side. So, we need to add the next() with ScannerContext method to OrderedResultIterator too. This method will be used on the server side. The scanner context should not serialized/deserialized. We also need to pass through ScannerContext context for the other result iterators used on the server side (for example, OffsetResultIterator). Also let us add tests for these result iterators.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@phoenix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org