Skip to content

HBASE-30174 Add start offset option to ROWPREFIX_FIXED_LENGTH bloom filter#8270

Open
jinhyukify wants to merge 1 commit into
apache:masterfrom
jinhyukify:HBASE-30174
Open

HBASE-30174 Add start offset option to ROWPREFIX_FIXED_LENGTH bloom filter#8270
jinhyukify wants to merge 1 commit into
apache:masterfrom
jinhyukify:HBASE-30174

Conversation

@jinhyukify

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Comment on lines +426 to 432
if (bloomType == BloomType.ROWPREFIX_FIXED_LENGTH && bloomParam != null) {
String[] parts = bloomParam.split(":");
conf.set(BloomFilterUtil.PREFIX_LENGTH_KEY, parts[0]);
if (parts.length > 1) {
conf.set(BloomFilterUtil.PREFIX_START_OFFSET_KEY, parts[1]);
}
}
Comment on lines +1025 to +1033
String prefixLength =
familyDescriptor.getConfigurationValue(BloomFilterUtil.PREFIX_LENGTH_KEY);
String startOffset =
familyDescriptor.getConfigurationValue(BloomFilterUtil.PREFIX_START_OFFSET_KEY);
if (startOffset != null && Integer.parseInt(startOffset) > 0) {
bloomParam = prefixLength + ":" + startOffset;
} else {
bloomParam = prefixLength;
}
Comment on lines +277 to +281
int startOffset = conf.getInt(PREFIX_START_OFFSET_KEY, 0);
if (startOffset < 0) {
throw new IllegalArgumentException(
message + "the value of " + PREFIX_START_OFFSET_KEY + " must be >= 0");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants