hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NNever <nnever...@gmail.com>
Subject Re: determine whole-row delete in Coprocessor.preDelete
Date Mon, 09 Apr 2012 01:37:38 GMT
Thanks J-D,
but i check the source,  in  HRegion.delete, there are some codes like this:

public void delete(){
...
prepareDelete(delete);  //  here will check if Delete has no columnfamily,
it will reset it's all columnFamilies.
internalDelete(...);  //  Coprocessor.preDelete triggered here
...

}

As the codes shows here, the 'no columns are specified' Delete will be
modifid to 'full columns specified' Delete before Cp.preDelete triggered.
So i stll get no way to find out if a Delete is going to delete a full
row...

2012/4/7 Jean-Daniel Cryans <jdcryans@apache.org>

> The same way you tell HBase to delete a whole row, no columns are
> specified.
>
> J-D
>
> On Thu, Apr 5, 2012 at 6:32 PM, NNever <nneverwei@gmail.com> wrote:
> > Dear all,
> >
> > when trigger a preDelete in Coprocessor, is there any possible to
> determine
> > this Delete is going to remove a row ( not just a family or qualifier,
> but
> > the whole row)?
> >
> > Thanks so much!
> >
> > Best regards,
> > nn
>

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