Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - how to reverse an integer for rowkey?


Copy link to this message
-
Re: how to reverse an integer for rowkey?
James Taylor 2014-03-27, 17:00
Another option is to use Apache Phoenix and let it do these things for you:
    CREATE TABLE my_table(
        intField INTEGER,
        strField VARCHAR,
        CONSTRAINT pk PRIMARY KEY (intField DESC, strField));

Thanks,
James
@JamesPlusPlus
http://phoenix.incubator.apache.org/
On Thu, Mar 27, 2014 at 1:24 AM, Li Li <[EMAIL PROTECTED]> wrote: