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 >> Column qualifiers with hierarchy and filters


Copy link to this message
-
Column qualifiers with hierarchy and filters
Hi,

I'm trying to determine the best way to serialize a sequence of
integers/strings that represent a hierarchy for a column qualifier, which
would be compatible with the ColumnPrefixFilters, and BinaryComparators.

However, due to the lexicographical sorting, it's awkward to serialize the
sequence of values needed to get it to work.

What are the typical solutions to this? Do people just zero pad integers to
make sure they sort correctly? Or do I have to implement my own
QualifierFilter - which seems expensive since I'd be deserializing every
byte array just to compare.

Thanks

- Nasron
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