hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Using Thrift Java API to get last row
Date Tue, 25 Nov 2014 03:07:16 GMT
You can use reverse scan. See the example
in hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServer.java:

    TScan reversedScan = new TScan();
    reversedScan.setReversed(true);

Cheers

On Mon, Nov 24, 2014 at 5:21 PM, Néstor Boscán <nestorjb@gmail.com> wrote:

> Hi
>
> How do I use the Thrift Java API to get the last row in the table?
>
> Regards,
>
> Néstor
>

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