Don't confuse the Result API with the Get/Scan APIs.

If you only ask for columns A, B, and C with your Get query, getting the entire 
familyMap from the Result will only ever include columns A, B, and C since 
that's all you asked for.

> -----Original Message-----
> From: Vaibhav Puranik [mailto:[email protected]]
> Sent: Thursday, June 17, 2010 12:03 PM
> To: [email protected]
> Subject: Re: Sorting columns
> 
> Stack,
> 
> Incremental sounds good, how do you do that, can you please point to a
> method/class?
> I only saw methods to get the entire family map.
> 
> Also is there any way to specify qualifier sort type - ascending or
> descending?
> 
> Regards,
> Vaibhav
> 
> On Thu, Jun 17, 2010 at 11:35 AM, Stack <[email protected]> wrote:
> 
> > On Thu, Jun 17, 2010 at 11:14 AM, Vaibhav Puranik
> <[email protected]>
> > wrote:
> > > Is there any way to get the columns in the sorted order of its
> values?
> >
> > Not by value.
> >
> > We
> > > want to get the first few columns only evertime we scan the table.
> >
> > Sorted by value?
> >
> > HBase orders by row, family, qualifier.  Could you put the value into
> > the qualifiier as a qualifier prefix and then hbase will take of the
> > sort for you.
> >
> > > The rest of the data needs to be accessed occasionally. We want to
> avoid
> > > getting it shipped to the client as it makes our map reduce job go
> out of
> > > memory.
> > >
> >
> > You are not using incremental get on a row?  You should be able to
> get
> > your big rows piecemeal.
> >
> > Good on you Vaibhav,
> > St.Ack
> >

Reply via email to