hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei Tan <w...@us.ibm.com>
Subject RE: connect to the region from coprocessor
Date Thu, 11 Oct 2012 17:45:52 GMT
Thank you Anoop and that is a very helpful suggestion.

Best Regards,

From:   Anoop Sam John <anoopsj@huawei.com>
To:     "user@hbase.apache.org" <user@hbase.apache.org>, 
"hbase-user@hadoop.apache.org" <hbase-user@hadoop.apache.org>, 
Date:   10/10/2012 05:22 AM
Subject:        RE: connect to the region from coprocessor

    To your prePut() method you are getting an ObserverContext argument. 
>From this you can easily get a ref to the current region.
Directly make calls to this region object. Creation of the HTable instance 
and making a get() will be too much unwanted overhead.

From: Wei Tan [wtan@us.ibm.com]
Sent: Wednesday, October 10, 2012 2:05 AM
To: hbase-user@hadoop.apache.org
Subject: connect to the region from coprocessor


In my preput coprocessor I would like to get the old value of the row been
input. Now I am creating a HTable instance and using the get interface;
function wise it works fine. Given the row is physically in the same
region as the cp, is there any lightweight approach doing that?


Best Regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message