Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-28518 Allow specifying a filter for the REST multiget endpoint … #5852

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ 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, will be removed in 4.0.0. Please use {@link #FILTER}
* instead.
*/
@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