Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A76FE200B6F for ; Wed, 24 Aug 2016 21:31:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A605E160AB1; Wed, 24 Aug 2016 19:31:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC88B160A91 for ; Wed, 24 Aug 2016 21:31:08 +0200 (CEST) Received: (qmail 43363 invoked by uid 500); 24 Aug 2016 19:31:07 -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 43351 invoked by uid 99); 24 Aug 2016 19:31:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 19:31:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BA6B9C0A64 for ; Wed, 24 Aug 2016 19:31:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.478 X-Spam-Level: **** X-Spam-Status: No, score=4.478 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FUZZY_MILLION=2.599, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id SqnmTUeYl5Lc for ; Wed, 24 Aug 2016 19:31:06 +0000 (UTC) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CA8E55F486 for ; Wed, 24 Aug 2016 19:31:05 +0000 (UTC) Received: by mail-yw0-f173.google.com with SMTP id z8so16463575ywa.1 for ; Wed, 24 Aug 2016 12:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5MA66m/39BAWL3m155XRdobc6fj55TJfFZ6muT/siKw=; b=evNYb6RQXoMzU9o5mS7SvaMndfWGdw4f7KUZEkIdPwTbCy2C3n6fsB2U6QblF4vWzj opBtyiH4obF6dF5yk47hHd1oVtocfa3zVWS7Y9wmL8DnGkdlwin/Eq8EANRzWXn3dpZy lg/6Bta5NJn+LbGjCVp1V00oJqAY4XBQXg0KFPMYf7qZCq8g6OivpmhIXvO9UkTvp4MW 7UDo2hktmkKRACYzAT9yh3ljKi8HtL1lj9h2iTmJ9CrAQUv9qOyhomEG9GvJB3X8pWJ0 0HeE/weV619/yJAiwQoeYaGLfXl7IfNRH6rczMCI0SJMy6V1mL6cfm60GldM83KQOQ/4 YLSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5MA66m/39BAWL3m155XRdobc6fj55TJfFZ6muT/siKw=; b=hcc0QRrrM3pbfH26iwP4qk7I9pzBGeE9Aj06+drApukNHvWxT6KOA+/2jA84/1/Lc2 GFSS+CmxtK35asBlePd/LeyRQfjn2ZC/2V63wDc9FuygWGw9YT1fSSP+XPlkJamZK/6G m/uaiDWt+iyWaBrm8TmuXs7kNjsFToMw16tg0CaDvRA0uOzJj1/9VEQ6/AFOPv4GcVW8 3Re1XD56870CMBvKutDKvBReZzatQVoNF6yC4bBaGQfmfmx7h7FeB3kETAx6WC/ehtO4 J5wb/n7dHM/1cOH0FA37ZweKP/Rhf61Y6im0HdFOI3+rDF9gi7GUPXacsloIeE1Fz6O1 cVLg== X-Gm-Message-State: AEkoousqC7yRYynOWYZug3oV7uLuCycVcymydIIkkOzLeFhvTGKK3NcdR+qGH8oJdOpzbsdYmo0nLdMJDZcbjg== X-Received: by 10.129.55.205 with SMTP id e196mr3814204ywa.243.1472067065289; Wed, 24 Aug 2016 12:31:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.4 with HTTP; Wed, 24 Aug 2016 12:31:04 -0700 (PDT) In-Reply-To: References: From: Ted Yu Date: Wed, 24 Aug 2016 12:31:04 -0700 Message-ID: Subject: Re: How to get Last 1000 records from 1 millions records To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11414f2c833ee7053ad652f5 archived-at: Wed, 24 Aug 2016 19:31:09 -0000 --001a11414f2c833ee7053ad652f5 Content-Type: text/plain; charset=UTF-8 The following API should help in your case: public Scan setReversed(boolean reversed) { Cheers On Wed, Aug 24, 2016 at 12:05 PM, Manjeet Singh wrote: > Hi all > > Hbase didnt provide sorting on column but rowkey store in sorted form > like small value first and greater value last > > example > 1 > 2 > 3 > 4 > 5 > 6 > 7 > and so on > > Assume I have 1 Miilions record but i want to look last 1000 records only > Is their any way to do this? I don't want to perform any calculation on > client side so may be any filter can help on it? > > Thanks > Manjeet > > -- > luv all > --001a11414f2c833ee7053ad652f5--