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 is

RE: Retrieve Put timestamp

2012-08-02 Thread Wei Tan
: "Ramkrishna.S.Vasudevan" To: , 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...@huawei.com] > Sent: Thursd

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

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

Re: Retrieve Put timestamp

2012-08-01 Thread Stack
On Wed, Aug 1, 2012 at 7:12 PM, Wei Tan 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 to prePut() t

Re: Retrieve Put timestamp

2012-08-01 Thread Wei Tan
need to change the behavior of it Any flaw in this design? Thanks, Wei From: lars hofhansl To: "user@hbase.apache.org" , Date: 08/01/2012 12:37 PM Subject: Re: Retrieve Put timestamp There is no HBase API for this. However, this could useful in some scenario, s

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 To: "user@hbase.apache.org" Sent: Monday, July 30, 2012 3:13 PM Subjec

RE: Retrieve Put timestamp

2012-07-31 Thread Pablo Musa
tack Sent: terça-feira, 31 de julho de 2012 18:12 To: user@hbase.apache.org Subject: Re: Retrieve Put timestamp On Mon, Jul 30, 2012 at 11:13 PM, Pablo Musa 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 wa

Re: Retrieve Put timestamp

2012-07-31 Thread Stack
On Mon, Jul 30, 2012 at 11:13 PM, Pablo Musa 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 force times

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

Retrieve Put timestamp

2012-07-30 Thread Pablo Musa
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 force timestamp, but it is not a good idea since different servers * write in