I have a 'long' number that I get by using
HTable.'incrementColumnValue'. This long is used as the qualifier id
on a columnFamily.

Now I need to add a prefix 'status' so that I can store another value
in the same family.

How should I consider String vs long sorting?

So right now:

colFamily: id1_asLong = val1
colFamily: id2_asLong = val2
colFamily: id3_asLong = val3
colFamily: id4_asLong = val4

and in addition

colFamily: status_id1_asString = val5
colFamily: status_id2_asString = val6
colFamily: status_id3_asString = val7
colFamily: status_id4_asString = val8

To make sure that 'id' values are sorted and accessed sequentially,
should I change my design so that the id1_asLong is stored as
id1_asString?
When I do my Get, I always get id1_asLong and status_id1_asString together.

Thanks.

Reply via email to