|
|
-
Is there a fast way to find the last row in a table?
David Medinets 2013-01-24, 20:08
I am looking information coming from the tableMap in the MasterMonitorInfo object. It seems like getEndRow() returns null for the last tablet.
+
David Medinets 2013-01-24, 20:08
-
Re: Is there a fast way to find the last row in a table?
Keith Turner 2013-01-24, 20:17
In the shell, you can use maxrow. In the API, you can call conn.tableOperations().getMaxRow()
On Thu, Jan 24, 2013 at 3:08 PM, David Medinets <[EMAIL PROTECTED]> wrote: > I am looking information coming from the tableMap in the > MasterMonitorInfo object. It seems like getEndRow() returns null for > the last tablet.
+
Keith Turner 2013-01-24, 20:17
-
Re: Is there a fast way to find the last row in a table?
David Medinets 2013-01-25, 13:19
On Thu, Jan 24, 2013 at 3:17 PM, Keith Turner <[EMAIL PROTECTED]> wrote: > In the shell, you can use maxrow. In the API, you can call > conn.tableOperations().getMaxRow()
I used tableOperations.getMaxRow("TABLENAME", new Authorizations(), null, true, null, true) and it worked just fine. Thank you.
+
David Medinets 2013-01-25, 13:19
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext