stoty commented on code in PR #6060:
URL: https://github.com/apache/hbase/pull/6060#discussion_r1670632978
##########
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:
I have added checks around the revert code.
##########
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/ScannerModel.java:
##########
@@ -458,6 +520,12 @@ public FilterModel(Filter filter) {
this.filters = new ArrayList<>();
this.filters.add(new FilterModel(((WhileMatchFilter)
filter).getFilter()));
break;
+ case FuzzyRowFilter:
+ this.fuzzyKeys = new ArrayList<>();
Review Comment:
Done.
--
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]