hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajgopal Vaithiyanathan <raja.f...@gmail.com>
Subject Re: Find the tablename in Observer
Date Tue, 29 Jan 2013 01:16:46 GMT
Great. Thanks..

is there anyway that I can get it before prePut() ??
Like from the constructor or from the start() method too ? i followed the
code of CoprocessorEnvironment and didn't seem to get anything out of it.


On Mon, Jan 28, 2013 at 5:09 PM, Ted Yu <yuzhihong@gmail.com> wrote:

>   void prePut(final ObserverContext<RegionCoprocessorEnvironment> c,
>
>       final Put put, final WALEdit edit, final boolean writeToWAL)
>
> ((RegionCoprocessorEnvironment)c.getEnvironment()).getRegion().getRegionInfo().getTableName()
>
> Cheers
>
> On Mon, Jan 28, 2013 at 4:56 PM, Rajgopal Vaithiyanathan <
> raja.fire@gmail.com> wrote:
>
> > Hi all,
> >
> > inside the prePut() method, Is there anyway to know the table name for
> > which the prePut() is running ?
> >
> > --
> > Thanks and Regards,
> > Rajgopal Vaithiyanathan.
> >
>



-- 
Thanks and Regards,
Rajgopal Vaithiyanathan.

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