Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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?
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:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB