You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Sean Busbey <bu...@apache.org> on 2017/08/29 23:35:34 UTC
Re: How send/receive (if need) native client messages?
+dev@hbase
-user@hbase
please move this discussion to the dev list.
On Tue, Aug 29, 2017 at 11:22 AM, Ted Yu <yu...@gmail.com> wrote:
> GetTableNames API hasn't been implemented yet.
>
> If you have bandwidth, you're welcome to contribute to HBASE-14850 (as
> subtask).
>
> On Tue, Aug 29, 2017 at 9:11 AM, Andrzej <bo...@wp.pl> wrote:
>
>> I try code:
>> hbase::pb::GetTableNamesRequest getTableNamesRequest;
>> //<---- how send request?
>> hbase::pb::GetTableNamesResponse getTableNamesResponse;
>> //<---- how receive response?
>> int n = getTableNamesResponse.table_names_size();
>> std::cout << n << std::endl; // <------ is 0
>> for (int i=0; i<n; i++)
>> {
>> ::hbase::pb::TableName const name =
>> getTableNamesResponse.table_names(i);
>> bool has = name.has_namespace_();
>> std::cout << has << std::endl;
>> }
>>
>> or is another way to list table names?
>>