Re: How to understand the TS of each data version?

2013-09-30 Thread takeshi
Hi, yonghu I am not sure the following timestamp info. whether valuable for you, post it anyway. So, I wonder 1. If there are any predefined semantics of TS in HBase or the semantics of TS is application-specific? As I know, the timestamp is mainly used for 1. fetch order: from newest to

Re: How to understand the TS of each data version?

2013-09-28 Thread Ted Yu
Can you make NetworkSpeed as column family ? This way you can treat individual suppliers as columns within the column family. So for user Tom has a new supplier d instead of supplier c and its speed is 15K: rk NetworkSpeed cd Tom {10K:1} Tom {15K:2}

Re: How to understand the TS of each data version?

2013-09-28 Thread yonghu
Hi, Ted Thanks for your response. This is also the way I use to avoid the problem. regards! Yong On Sat, Sep 28, 2013 at 4:31 PM, Ted Yu yuzhih...@gmail.com wrote: Can you make NetworkSpeed as column family ? This way you can treat individual suppliers as columns within the column

Re: How to understand the TS of each data version?

2013-09-27 Thread Ted Yu
In {10K:1, 20K:3, 15K:5}, what does the value (1, 3, 5) represent ? Cheers On Fri, Sep 27, 2013 at 7:24 AM, yonghu yongyong...@gmail.com wrote: Hello, In my understanding, the timestamp of each data version is generated by Put command. The value of TS is either indicated by user or

Re: How to understand the TS of each data version?

2013-09-27 Thread yonghu
(1,3,5) are timestamp. regards! Yong On Fri, Sep 27, 2013 at 4:47 PM, Ted Yu yuzhih...@gmail.com wrote: In {10K:1, 20K:3, 15K:5}, what does the value (1, 3, 5) represent ? Cheers On Fri, Sep 27, 2013 at 7:24 AM, yonghu yongyong...@gmail.com wrote: Hello, In my understanding, the

Re: How to understand the TS of each data version?

2013-09-27 Thread Ted Yu
Can you tell me why readings corresponding to different timestamps would appear in the same row ? Thanks On Fri, Sep 27, 2013 at 8:57 AM, yonghu yongyong...@gmail.com wrote: (1,3,5) are timestamp. regards! Yong On Fri, Sep 27, 2013 at 4:47 PM, Ted Yu yuzhih...@gmail.com wrote: In

Re: How to understand the TS of each data version?

2013-09-27 Thread lars hofhansl
Not sure I follow. You have a single row with two columns? In your scenario you'd see that supplier c has 15k iff you query the latest data, which seems to be what you want. Note that you could also query as of TS 4 (c:20k), TS3 (d:20k), TS2 (d:10k) -- Lars

Re: How to understand the TS of each data version?

2013-09-27 Thread yonghu
To Ted, --Can you tell me why readings corresponding to different timestamps would appear in the same row ? Is that mean the data versions which belong to the same row should at least have the same timestamps? For adding a row into HBase, I can use single Put instance, for example, Put put =