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 06F7A83F5 for ; Sat, 20 Aug 2011 09:52:16 +0000 (UTC) Received: (qmail 3222 invoked by uid 500); 20 Aug 2011 09:52:09 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 2228 invoked by uid 500); 20 Aug 2011 09:51:51 -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 2218 invoked by uid 99); 20 Aug 2011 09:51:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2011 09:51:48 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sonalgoyal4@gmail.com designates 209.85.220.169 as permitted sender) Received: from [209.85.220.169] (HELO mail-vx0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2011 09:51:42 +0000 Received: by vxj3 with SMTP id 3so4375000vxj.14 for ; Sat, 20 Aug 2011 02:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dsZV9UWrrE9W+N+IwfiHDXJ67g71JHMAGbe0LpdAZn8=; b=ICayMzV9IEK9HK6jYfJB2gq/vbI+LvZI6ogdK4tm0Q1r+4zo0wpsJO363ZeSNJesuy uuEn8I9NqY3Zn0jOHiT3VSsXC7GnAV/qwG6bv22k0OV7gOUTZGGcUMjnEe6ne2EpNpGW 0dAQQcEKmJnR0DJWeylm9XButriraPQW15YW4= MIME-Version: 1.0 Received: by 10.52.94.147 with SMTP id dc19mr232851vdb.194.1313833880459; Sat, 20 Aug 2011 02:51:20 -0700 (PDT) Received: by 10.52.114.234 with HTTP; Sat, 20 Aug 2011 02:51:20 -0700 (PDT) In-Reply-To: <1313818002.8846.YahooMailNeo@web121702.mail.ne1.yahoo.com> References: <4E4F104C.3070400@gmail.com> <1313818002.8846.YahooMailNeo@web121702.mail.ne1.yahoo.com> Date: Sat, 20 Aug 2011 15:21:20 +0530 Message-ID: Subject: Re: Reverse timestamp From: Sonal Goyal To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec5016467bd1af904aaecc9cf --bcaec5016467bd1af904aaecc9cf Content-Type: text/plain; charset=ISO-8859-1 Hi Mark, Here is an example for generating reverse timestamps. Hope it helps: http://devblog.streamy.com/2009/04/23/hbase-row-key-design-for-paging-limit-offset-queries/ Best Regards, Sonal Crux: Reporting for HBase Nube Technologies On Sat, Aug 20, 2011 at 10:56 AM, lars hofhansl wrote: > HBase maps (row-key, column family name, column, timestamp) to a value. > > The KeyValues are also sorted by the same attributes in reverse timestamp > order. > > The default timestamp is the current time, but you can set any long value > (which does not need correlate in any way to the time domain) > as the time stamp and hence define your own ordering within multiple > version of the same row key. > > See Put: Put(byte[] row, long ts). > > Is that what you meant? > > -- Lars > > > > ________________________________ > From: Mark > To: user@hbase.apache.org > Sent: Friday, August 19, 2011 6:39 PM > Subject: Reverse timestamp > > I understand the need but I don't understand how to generate a reverse > timestamp. Can someone please explain how this is accomplished and how I can > test that its working correctly? > > Thanks > --bcaec5016467bd1af904aaecc9cf--