hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: Table size from API
Date Thu, 28 Jan 2010 07:38:12 GMT
Actual row count is not stored anywhere. It must be discovered by a table scan, or
a distributed count (mapreduce job, usually).

   - Andy



----- Original Message ----
> From: john smith <js1987.smith@gmail.com>
> To: hbase-user@hadoop.apache.org
> Sent: Thu, January 28, 2010 2:44:16 PM
> Subject: Re: Table size from API
> 
> I think META table stores some info about tables .. is it not the case?
> 
> On Thu, Jan 28, 2010 at 12:10 PM, Dan Washusen wrote:
> 
> > I think the shell just performs a scan and iterates over all the rows,
> > counting as it goes.  You could do the same with the client API...
> >
> > 2010/1/28 john smith 
> >
> > > Hi guys,
> > >
> > > Is there a way to get the rowcount of the table from java API .. I looked
> > > at
> > > HTable and HTableDesc... but I couldn't find it .. It is similar to
> > "count
> > > " frm Hbase shell.
> > >
> > > Thanks
> > > J-S
> > >
> >



      


Mime
View raw message