RE: Retrieve Put timestamp

2012-11-13 Thread Wei Tan
I wonder if there is any follow up on this issue, i.e., a put can return a timestamp of the record? Thanks! Best Regards, Wei From: Wei Tan/Watson/IBM To: user@hbase.apache.org, Date: 08/02/2012 12:37 PM Subject:RE: Retrieve Put timestamp +1. So far I think timestamp

RE: Retrieve Put timestamp

2012-08-02 Thread Wei Tan
: Ramkrishna.S.Vasudevan ramkrishna.vasude...@huawei.com To: user@hbase.apache.org, Date: 08/02/2012 12:54 AM Subject:RE: Retrieve Put timestamp +1. Anyway all mutations extends OperationsWithAttributes also. Regards Ram -Original Message- From: Anoop Sam John [mailto:anoo

Re: Retrieve Put timestamp

2012-08-01 Thread lars hofhansl
There is no HBase API for this. However, this could useful in some scenario, so maybe we could add an API for this. It's not entirely trivial, though. From: Pablo Musa pa...@psafe.com To: user@hbase.apache.org user@hbase.apache.org Sent: Monday, July 30, 2012

Re: Retrieve Put timestamp

2012-08-01 Thread Stack
On Wed, Aug 1, 2012 at 7:12 PM, Wei Tan w...@us.ibm.com wrote: We have a similar requirement and here is the solution in our mind: add a coprocessor, in prePut() get the current ms and set it to put --- the current implementation get the current ms and set it in put() return the ms generated

RE: Retrieve Put timestamp

2012-08-01 Thread Anoop Sam John
...@duboce.net] Sent: Thursday, August 02, 2012 3:41 AM To: user@hbase.apache.org Subject: Re: Retrieve Put timestamp On Wed, Aug 1, 2012 at 7:12 PM, Wei Tan w...@us.ibm.com wrote: We have a similar requirement and here is the solution in our mind: add a coprocessor, in prePut() get the current ms and set

RE: Retrieve Put timestamp

2012-08-01 Thread Ramkrishna.S.Vasudevan
+1. Anyway all mutations extends OperationsWithAttributes also. Regards Ram -Original Message- From: Anoop Sam John [mailto:anoo...@huawei.com] Sent: Thursday, August 02, 2012 10:13 AM To: user@hbase.apache.org Subject: RE: Retrieve Put timestamp Currently in Append

Re: Retrieve Put timestamp

2012-07-31 Thread Asaf Mesika
What do you mean by using TS as version? Are you determining the ts long value before and then setting it in the Put object? If so, I think you can use a specific cell as a counter (Sequence in Oracle language, or Auto Increment column in MySQL). In that case of course you need the value of the

Re: Retrieve Put timestamp

2012-07-31 Thread Stack
On Mon, Jul 30, 2012 at 11:13 PM, Pablo Musa pa...@psafe.com wrote: Hey guys, in my application the HBase timestamp is used as version in my logic. I would like to know what is the best way to insert a new record and get its timestamp. I have come up with two possibilities: /* I could

RE: Retrieve Put timestamp

2012-07-31 Thread Pablo Musa
@hbase.apache.org Subject: Re: Retrieve Put timestamp On Mon, Jul 30, 2012 at 11:13 PM, Pablo Musa pa...@psafe.com wrote: Hey guys, in my application the HBase timestamp is used as version in my logic. I would like to know what is the best way to insert a new record and get its timestamp. I have