hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: scan filtering for certain rows by column family
Date Wed, 07 May 2014 20:18:18 GMT
You can use FilterList consisting of 3 SingleColumnValueFilter's, one for
each column family.
Remember to call setFilterIfMissing(true) on each SingleColumnValueFilter.

Cheers


On Tue, May 6, 2014 at 4:29 PM, cnpeyton <cnpeyton@hotmail.com> wrote:

> I want to do a scan of a table and only have rows that contain certain
> columns families be returned from the scan.  For example, lets say i have 2
> column families a, b, and c.  I want to set a scan up with a filter that
> would only give me rows that have data within column families a and c.  For
> example, if row 2 has only data in column family b, then it should not be
> returned.
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/scan-filtering-for-certain-rows-by-column-family-tp4058919.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>

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