hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans" <jdcry...@gmail.com>
Subject Re: Multi get/put
Date Mon, 28 Jul 2008 18:36:35 GMT
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 <marcus.herou@tailsweep.com>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
> marcus.herou@tailsweep.com
> http://www.tailsweep.com/
> http://blogg.tailsweep.com/
>

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