hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Larsen <dlar...@connexity.com>
Subject RE: key byte pattern
Date Thu, 06 Nov 2014 15:05:06 GMT
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.


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
BTW, 1415276116.223232 is a epoch second

--- Get your facts first, then you can distort them as you please.--

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