stoty commented on code in PR #6060: URL: https://github.com/apache/hbase/pull/6060#discussion_r1670615691
########## hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FuzzyRowFilter.java: ########## @@ -161,6 +161,31 @@ private boolean isPreprocessedMask(byte[] mask) { return true; } + /** + * Returns the Fuzzy keys in the format expected by the constructor. + * @return the Fuzzy keys in the format expected by the constructor + */ + public List<Pair<byte[], byte[]>> getFuzzyKeys() { + List<Pair<byte[], byte[]>> returnList = new ArrayList<>(fuzzyKeysData.size()); + for (Pair<byte[], byte[]> fuzzyKey : fuzzyKeysData) { Review Comment: It doesn't really matter, becase this method is called only once when we serialize the filter on the client side for a REST call, so it is not in the hot path. I can add the same checks that the preprocessMask() has for symmetry. -- 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-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org