hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: HBase Delete - based on non-rowkey columns
Date Wed, 06 Nov 2013 18:29:36 GMT
For #2, if the row key has fixed width, you can also consider using
FuzzyRowFilter

Cheers


On Wed, Nov 6, 2013 at 1:20 AM, Jia Wang <ramon@appannie.com> wrote:

> 1)   In HBASE, is it possible to delete a row  based on a column name &
>  value.   The column name should not be a row key, because in this scenario
> we cannot delete    based on the row key.
>
> YES, you can with a Filter.
>
> 2) Is it possible to delete a row in HBase table , based on the partial row
> key.
>
> YES, you can with a RegexStringComparator based Filter, here is an example:
>
> Filter rf = new RowFilter(CompareFilter.CompareOp.EQUAL,
> newRegexStringComparator(
> "(.*" + platform + "#" + groupDate
>
>                 + ")"));
>
>
> Cheers
>
> Ramon
>
>
> On Wed, Nov 6, 2013 at 5:14 PM, <raviprasad.t@polarisft.com> wrote:
>
> > Hi all,
> > I have two questions
> > 1)   In HBASE, is it possible to delete a row  based on a column name &
> >  value.   The column name should not be a row key, because in this
> scenario
> > we cannot delete    based on the row key.
> >
> >
> > 2) Is it possible to delete a row in HBase table , based on the partial
> > row key.
> >
> > Thanks in advance.
> >
> >
> >
> > Regards
> > Raviprasad. T
> >
> >
> > This e-Mail may contain proprietary and confidential information and is
> > sent for the intended recipient(s) only.  If by an addressing or
> > transmission error this mail has been misdirected to you, you are
> requested
> > to delete this mail immediately. You are also hereby notified that any
> use,
> > any form of reproduction, dissemination, copying, disclosure,
> modification,
> > distribution and/or publication of this e-mail message, contents or its
> > attachment other than by its intended recipient/s is strictly prohibited.
> >
> > Visit us at http://www.polarisFT.com
> >
>

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