Skip to content

Conversation

@HexyinUESTC
Copy link
Contributor

Summary

Solution Description

idx += len;
} else {
len = HTABLE_FILTER_DUMMY_BYTES.length;
System.arraycopy(HTABLE_FILTER_DUMMY_BYTES, 0, bytes, idx, len);
Copy link
Contributor

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) {
Copy link
Contributor

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;
Copy link
Contributor

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的超时时间的一部分
Copy link
Contributor

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
Copy link
Contributor

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

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