-
Notifications
You must be signed in to change notification settings - Fork 24
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
add ObKVParams #179
base: master
Are you sure you want to change the base?
add ObKVParams #179
Conversation
idx += len; | ||
} else { | ||
len = HTABLE_FILTER_DUMMY_BYTES.length; | ||
System.arraycopy(HTABLE_FILTER_DUMMY_BYTES, 0, bytes, idx, len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idx += len;
@@ -466,4 +483,13 @@ public void setScanRangeColumns(String... scanRangeColumns) { | |||
public void setScanRangeColumns(List<String> scanRangeColumns) { | |||
this.scanRangeColumns = scanRangeColumns; | |||
} | |||
|
|||
public void setObKVParams(ObKVParams obKVParams) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setObKVParams -> setHbaseParams
|
||
private int getContentSize() { | ||
return 4 + Serialization.getNeedBytes(caching) + Serialization.getNeedBytes(callTimeout) | ||
+ 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use static const
|
||
public class ObHBaseParams extends ObKVParamsBase { | ||
int caching = -1; // 限制scan返回的行的数量 | ||
int callTimeout = -1; // scannerLeasePeriodTimeout,代表客户端scan的单个rpc超时时间以及服务端的scan的超时时间的一部分 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comment should in English
byte[] bytes = new byte[1]; // 1 byte for 4 booleans | ||
|
||
if (allowPartialResults) | ||
bytes[0] |= 0x01; // 00000010 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
define 0x01 as a static const
Summary
Solution Description