hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Aleksandrovsky <balek...@gmail.com>
Subject Re: quick get of number of rows in the table
Date Tue, 02 Feb 2010 22:00:58 GMT
Thanks, Jean-Daniel!

On Tue, Feb 2, 2010 at 1:59 PM, Jean-Daniel Cryans <jdcryans@apache.org>wrote:

> Boris,
>
> There is a quicker way but since we currently don't keep a count
> somewhere, it's always about doing a full table scan.
>
> See how the count is implemented in the shell to learn of the quicker
> way. Specifically, look at bin/HBase.rb
>
> J-D
>
> On Tue, Feb 2, 2010 at 1:54 PM, Boris Aleksandrovsky <baleksan@gmail.com>
> wrote:
> > Hi,
> >
> > Is there a way to retrieving the number of rows in the table without
> doing a
> > complete scan and counting the number of returned results (via next())?
> >
> > --
> > Thanks,
> >
> > Boris
> >
>



-- 
Thanks,

Boris
http://twitter.com/baleksan
http://www.linkedin.com/in/baleksan

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