Skip to content

Commit

Permalink
HBASE-28518 Allow specifying a filter for the REST multiget endpoint …
Browse files Browse the repository at this point in the history
…(addendum: revert SCAN_FILTER constant name)
  • Loading branch information
stoty committed Apr 25, 2024
1 parent 6c6e776 commit 5b739e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public interface Constants {
String SCAN_LIMIT = "limit";
String SCAN_FETCH_SIZE = "hbase.rest.scan.fetchsize";
String FILTER = "filter";
/**
* @deprecated Since 2.4.18/2.5.9/2.6.0/3.0/4.0. Use {@link #FILTER}
*/
@Deprecated
String SCAN_FILTER = FILTER;
String FILTER_B64 = "filter_b64";
String SCAN_REVERSED = "reversed";
String SCAN_CACHE_BLOCKS = "cacheblocks";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public Response get(final @Context UriInfo uriInfo,
if (paramFilterB64 != null) {
filterBytes = base64Urldecoder.decode(paramFilterB64);
} else if (paramFilter != null) {
// Not binary clean
filterBytes = paramFilter.getBytes();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ public TableScanResource getScanResource(final @PathParam("scanspec") String sca
if (paramFilterB64 != null) {
filterBytes = base64Urldecoder.decode(paramFilterB64);
} else if (paramFilter != null) {
// Not binary clean
filterBytes = paramFilter.getBytes();
}
if (filterBytes != null) {
Expand Down

0 comments on commit 5b739e6

Please sign in to comment.