It sounds like what you want is a modified version of SingleColumnValueFilter, 
something like AllColumnValueFilter.  Using the existing code this shouldn't be 
too difficult.

I've thought about getting this logic out of a combination of existing or 
slightly modified filters but it's complex.  You would need something like an 
inverted WhileMatchFilter that worked on a per-row basis wrapping a ValueFilter.

JG
 
> -----Original Message-----
> From: Raghava Mutharaju [mailto:[email protected]]
> Sent: Tuesday, June 01, 2010 1:47 AM
> To: [email protected]
> Cc: [email protected]
> Subject: question on Filtering and checkAndPut()
> 
> Hi all,
> 
>      Can the following type of value filter be possible -- Within a
> row,
> irrespective of the columns (qualifiers), the presence of a value
> should be
> checked. If that value is present then the row along with all the
> columns
> should be fetched.
> 
> SingleColumnValueFilter requires the we specify the name of the
> qualifier
> but here I would like to check the value across all the qualifiers of
> the
> row. ValueFilter can be used but it does not return all the columns if
> there
> is a match - it only returns the matched column along with the row. So
> I
> want something which is a mix of both. Is this possible?
> 
> Can someone please explain the functionality of checkAndPut() method in
> HTable? I couldn't get it from the api doc. When I came across this
> method,
> my guess was that it would check for duplicate values -- for the given
> (row,
> family, qualifier) combination whether the given value is same as the
> value
> mentioned in put (for the same combination).
> 
> Thank you.
> 
> Regards,
> Raghava.

Reply via email to