Daniel,

BatchUpdate is the 0.2.0  equivalent to 0.1.x put().

J-D

On Tue, Jul 29, 2008 at 12:41 PM, Daniel Yu <[EMAIL PROTECTED]> wrote:

> hi J-D,
>   how about the performance of BatchUpdate and multiple single-Update? in
> MapReduce jobs, if we use TableReduce,
> we only have a put() method to update the table,  i'm wondering whether the
> put() method can use a BatchUpdate mechanism.  Thanks.
>
> 2008/7/28 Jean-Daniel Cryans <[EMAIL PROTECTED]>
>
> > Marcus,
> >
> > If you are currently building upon 0.2.0, the way to retrieve multiple
> rows
> > is to use a scanner available from the client class HTable. The way to
> > batch
> > multiple rows updates is to use the BatchUpdate[ ]  version of
> > HTable.commit
> >
> > Hope this helps,
> >
> > J-D
> >
> > On Mon, Jul 28, 2008 at 5:38 AM, Marcus Herou <
> [EMAIL PROTECTED]
> > >wrote:
> >
> > > Hi guys.
> > >
> > > Is there a way of retrieving multiple "rows" with one server call ?
> > > Something like MySQL's "where id in (a,b,c...)
> > >
> > > Or more like this.
> > > List<SortedMap<Text,byte[]>> rows = HTable.getRows(Text[] rowKeys);
> > >
> > > I'm building a framework around HBase which would benefit of handling
> > batch
> > > wise puts and gets.
> > >
> > > Kindly
> > >
> > > //Marcus
> > >
> > >
> > >
> > > --
> > > Marcus Herou CTO and co-founder Tailsweep AB
> > > +46702561312
> > > [EMAIL PROTECTED]
> > > http://www.tailsweep.com/
> > > http://blogg.tailsweep.com/
> > >
> >
>

Reply via email to