Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E595810D38 for ; Tue, 25 Nov 2014 03:10:01 +0000 (UTC) Received: (qmail 64613 invoked by uid 500); 25 Nov 2014 03:09:59 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 64541 invoked by uid 500); 25 Nov 2014 03:09:59 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 64529 invoked by uid 99); 25 Nov 2014 03:09:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 03:09:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.160.182 as permitted sender) Received: from [209.85.160.182] (HELO mail-yk0-f182.google.com) (209.85.160.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 03:09:32 +0000 Received: by mail-yk0-f182.google.com with SMTP id 131so4827325ykp.13 for ; Mon, 24 Nov 2014 19:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UArfeVVcKd5sC8dcIfzthsoluJ27H/x3p3RIqQVDkI4=; b=d+3lfct+G1jt/pWsmFSxCN9DRKt2JjEuQ9WDU+228kqudCifKNVZJ6dqwyJ7yB8yLE jYLfC5mbAd/yqBWniqXrqkG25sInvRwY8gGeacgtM5Hp0HB7AR3FasUb1adZqfjN13Pf T3J4InXbO4HbaX1H9vKwmvA3RdSYx1ntWmxbhB1Y7rh07eSkSL/v0XLULZqqHTeALRQo Kk032/sdIPZGMVW5mgACygAAyI+ritf5d1nN2lKGf3KUc27eIHZUmUszzD81C7/4F56W S7zb08AZi6qAjGlXWlMzGUA88lDmoTyZQzm0Sl5F1D2z4BxmpSSMRj1wxWPq60Aeo5Ax 8/Gg== MIME-Version: 1.0 X-Received: by 10.236.220.194 with SMTP id o62mr22066419yhp.32.1416884836120; Mon, 24 Nov 2014 19:07:16 -0800 (PST) Received: by 10.170.180.7 with HTTP; Mon, 24 Nov 2014 19:07:16 -0800 (PST) In-Reply-To: References: Date: Mon, 24 Nov 2014 19:07:16 -0800 Message-ID: Subject: Re: Using Thrift Java API to get last row From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11c22f9c583fba0508a635d6 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c22f9c583fba0508a635d6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can use reverse scan. See the example in hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServ= er.java: TScan reversedScan =3D new TScan(); reversedScan.setReversed(true); Cheers On Mon, Nov 24, 2014 at 5:21 PM, N=C3=A9stor Bosc=C3=A1n wrote: > Hi > > How do I use the Thrift Java API to get the last row in the table? > > Regards, > > N=C3=A9stor > --001a11c22f9c583fba0508a635d6--