Savonitar commented on code in PR #30190:
URL: https://github.com/apache/flink/pull/30190#discussion_r4768846813
##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBOperationUtils.java:
##########
@@ -129,6 +130,9 @@ public static RocksIteratorWrapper getRocksIterator(
* caller's options are not modified. If the prefix has no exclusive upper
bound (see {@code
* getPrefixEnd}), the caller's options are used as they are and the
iterator is unbounded: no
* key outside such a prefix can follow it, so nothing extra is visited.
+ *
+ * <p>Code that creates an iterator per state access can use a {@link
+ * PrefixBoundedIteratorFactory} to reuse the native upper-bound slice.
*/
static RocksIteratorWrapper getRocksIteratorBoundedByPrefix(
Review Comment:
The RocksDB timer priority queue also calls this helper from
orderedBytesIterator() for key-group scans. I kept it in RocksDBOperationUtils
so both callers can use it.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]