accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Turner <ke...@deenlo.com>
Subject Re: How to get the first key of the Tablet servers
Date Tue, 16 Jun 2015 14:08:20 GMT
You can use TableOperations.getMaxRow()[1] to find the last key in a
range.   This is not a constant time operation, its ~ O(log R) where R is
the amount of bits in your row.   There is a shell command to do this also.

[1]:
http://accumulo.apache.org/1.6/apidocs/org/apache/accumulo/core/client/admin/TableOperations.html#getMaxRow%28java.lang.String,%20org.apache.accumulo.core.security.Authorizations,%20org.apache.hadoop.io.Text,%20boolean,%20org.apache.hadoop.io.Text,%20boolean%29

On Tue, Jun 16, 2015 at 12:11 AM, Rukshan Chathuranga <rcrukshan17@gmail.com
> wrote:

> hi,
>
> Does anyone know how to get the first or last key of the tablet servers?
>
> Thanks and Regards.
>
> *Rukshan Chathuranga.*
>
> *Department Of Computer Science & Engineering,*
>
> *Faculty Of Engineering,*
> *University Of Moratuwa. **Sri Lanka.*
>
> *WEB: http://www.rukspot.com/ <http://rukspot.com/>*
>
>

Mime
View raw message