You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/11/14 07:09:00 UTC

[jira] [Commented] (KUDU-3393) c++ client suport getTableKeyRanges

    [ https://issues.apache.org/jira/browse/KUDU-3393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17633545#comment-17633545 ] 

ASF subversion and git services commented on KUDU-3393:
-------------------------------------------------------

Commit cef110b314f94aadfd3274932e710d05b7cec97c in kudu's branch refs/heads/master from kedeng
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=cef110b31 ]

KUDU-3393  C++ client support split a tablet to mutil ranges and concurrent scan data

I add a param for build 'KuduScanToken', like this :
`
KuduScanTokenBuilder builder(table);
vector<KuduScanToken*> tokens;
ElementDeleter deleter(&tokens);
// set splitSizeBytes
builder.SetSplitSizeBytes(1000);
ASSERT_OK(builder.Build(&tokens));
`
The default value of split_size_bytes is 0, and this means we don't split the key range
for a tablet.
If the value of split_size_bytes is nonzero, we will try to send a SplitKeyRangeRPC to
tservers. We may get more tokens than tablets num and the more tokens will help us scan faster.

Change-Id: I207f9584cd558d32fcd9e8de7d6c25e517377272
Reviewed-on: http://gerrit.cloudera.org:8080/18945
Tested-by: Kudu Jenkins
Reviewed-by: Yingchun Lai <ac...@gmail.com>


> c++ client suport getTableKeyRanges 
> ------------------------------------
>
>                 Key: KUDU-3393
>                 URL: https://issues.apache.org/jira/browse/KUDU-3393
>             Project: Kudu
>          Issue Type: New Feature
>          Components: client
>            Reporter: dengke
>            Priority: Major
>
> The java client can split a tablet to mutil ranges and concurrent scan data. 
> This is a good feature, but the C++ client does not support this feature.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)