hum...i am using get at the moment and here is the code

            HTable table = new HTable(config, "t1");
            Get g = new Get(Bytes.toBytes("NameKey"));
            g.addFamily(Bytes.toBytes("ColFam"));
           RowFilter   f1 = new RowFilter(CompareOp.EQUAL,new
BinaryComparator(Bytes.toBytes("active")));

            g.setFilter(f1);
            Result r = table.get(g);


can it possible with get?



On Thu, Nov 4, 2010 at 10:59 PM, Stack <[email protected]> wrote:

> Can you scan with maxversion set to 1?  Will that work?
> St.Ack
>
> On Thu, Nov 4, 2010 at 10:51 AM, Shuja Rehman <[email protected]>
> wrote:
> > Hi
> >
> > is there any option that valueFilter only check the latest version value?
> I
> > want to just compare the latest version value but valueFilter compares
> with
> > all the version. If I use SingleColumnValueFilter then we need to give
> the
> > qualifier but in my case, i just know the row key and family name. So is
> > there any other option to do this ?
> >
> > Thanks
> >
> > --
> > Regards
> > Shuja-ur-Rehman Baig
> > <http://pk.linkedin.com/in/shujamughal>
> >
>



-- 
Regards
Shuja-ur-Rehman Baig
<http://pk.linkedin.com/in/shujamughal>

Reply via email to