hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: key byte pattern
Date Thu, 06 Nov 2014 17:01:40 GMT
See http://hbase.apache.org/book.html#keysize

Cheers

On Thu, Nov 6, 2014 at 7:05 AM, David Larsen <dlarsen@connexity.com> wrote:

> You could simply take the timestamp as a Long and store it as as a byte
> array.
>
> What's the main advantage you are after with smaller keys?
>
>
> Sent from my Verizon Wireless 4G LTE smartphone
>
>
> -------- Original message --------
> From: Rita
> Date:11/06/2014 4:19 AM (GMT-08:00)
> To: hbase-user@hadoop.apache.org
> Subject: key byte pattern
>
> ATM, i have a key which is a string.
>
> "Z.1415276116.223232"
>
> Are there any algorithms or design patterns I should follow for something
> like this to decrease the key size? Obviously, storing it as a String is
> costly was wondering if there was a better way to store something like
> this?
> BTW, 1415276116.223232 is a epoch second
>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message