hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@apache.org>
Subject Re: How send/receive (if need) native client messages?
Date Tue, 29 Aug 2017 23:35:34 GMT
+dev@hbase
-user@hbase

please move this discussion to the dev list.

On Tue, Aug 29, 2017 at 11:22 AM, Ted Yu <yuzhihong@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 <borucki_andrzej@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?
>>

Mime
View raw message