hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ioakim Perros <imper...@gmail.com>
Subject Re: Printing integers in the Hbase shell
Date Sat, 11 Aug 2012 16:30:39 GMT
I see your point - but I thought it was necessary only for debugging 
purposes - I use this conversion for this reason. If anyone else is 
aware of a more efficient way, please answer.

Regards,
Ioakim

On 08/11/2012 07:26 PM, David Koch wrote:
> Hello Ioakim,
>
> Yes, that would work but sacrificing performance by doing int/String/int
> conversions and also space just to be able to inspect the odd row from
> shell is not worth it :-/
>
> /David
>
> On Sat, Aug 11, 2012 at 5:41 PM, Ioakim Perros <imperros@gmail.com> wrote:
>
>> On 08/11/2012 06:38 PM, David Koch wrote:
>>
>>> Hello,
>>>
>>> I have a table whose qualifiers are always integer values. They are show
>>> in
>>> the shell in \x notation. Is there a way to have the shell show the
>>> decimal
>>> representation?
>>>
>>> Thank you,
>>>
>>> /David
>>>
>>>   Hello David,
>> You could take the String.valueOf(yourInt) and store the
>> Bytes.toBytes(yourString) representation of this amount as column qualifier.
>>
>> Regards,
>> Ioakim
>>


Mime
View raw message