Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 9E45CCE3C for ; Thu, 31 May 2012 14:53:02 +0000 (UTC) Received: (qmail 23873 invoked by uid 500); 31 May 2012 14:53:02 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 23838 invoked by uid 500); 31 May 2012 14:53:02 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 23830 invoked by uid 99); 31 May 2012 14:53:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 14:53:02 +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 jwellington.moreno@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 14:52:54 +0000 Received: by pbbrp2 with SMTP id rp2so1668019pbb.0 for ; Thu, 31 May 2012 07:52:33 -0700 (PDT) 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=KLHyKXrIicFIORsrnzAFQSdW1lMFZff8vKsIhBDzHew=; b=PSzxCQRsX791NQaDsxIjz0GUoEJgcTvepfCz0Su4h3O7a/PNh3LQmt0lF9EwOLeP+a yhth5rxu4wAVerdMw33hRqVkZBM+rMxSLnqglx9eidR2WnH6RoA71vTfajsP7UhxeIJq vMgiTY6Vzsxq9PyyRsd5MictYKdfRaRt2xfg0i0fBWlzDq/hE+6jxTOITBkmbs4tg1Or 9ZX06v+ddFlSOdtbnMNEb2k/wATwvQOaVa9mBVxg0ulY4KEMaH54VF/6ALfI7QAcgQqj DcNjozkW9EAxtsLfz8e9rp8h0rsmwPoaDd8avdtlSKtF3GjGkrG4Ua9ClfPBAYmn46fg bQYA== MIME-Version: 1.0 Received: by 10.68.136.65 with SMTP id py1mr531787pbb.81.1338475953150; Thu, 31 May 2012 07:52:33 -0700 (PDT) Received: by 10.143.13.21 with HTTP; Thu, 31 May 2012 07:52:33 -0700 (PDT) Received: by 10.143.13.21 with HTTP; Thu, 31 May 2012 07:52:33 -0700 (PDT) In-Reply-To: <6555520011383230977@unknownmsgid> References: <6555520011383230977@unknownmsgid> Date: Thu, 31 May 2012 10:52:33 -0400 Message-ID: Subject: Re: Can Sort Order Be Reversed? From: Juan Moreno To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary=047d7b15b05fba5b2d04c1563777 --047d7b15b05fba5b2d04c1563777 Content-Type: text/plain; charset=ISO-8859-1 While we are on the subject, is there a way to scan rows sorted by timestamp, or a particular column? --------------------------------- *Juan* Moreno On May 31, 2012 10:41 AM, "Jim Klucar" wrote: > If its an int or long you can subtract it from the maximum int/long > before you write the row id. > > if it is a YYYYMMDD string, subtract each character from 9 before > writing the rowid. > > Sent from my iPhone > > On May 31, 2012, at 10:34 AM, William Slacum wrote: > > > As of now, nope! > > > > On Thu, May 31, 2012 at 7:24 AM, David Medinets > > wrote: > >> I don't know why it has taken me so long to ask this basic question. > >> Rows are stored in Accumulo in sorted order - high to low. Is there a > >> configuration option to flip the sort? My specific use case has dates > >> as the record key and I want to see the oldest records first. > --047d7b15b05fba5b2d04c1563777 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

While we are on the subject, is there a way to scan rows sorted by times= tamp, or a particular column?

---------------------------------
Juan Moreno

On May 31, 2012 10:41 AM, "Jim Klucar"= <klucar@gmail.com> wrote:
If its an int or long you can subtract it from the maximum int/long
before you write the row id.

if it is a YYYYMMDD string, subtract each character from 9 before
writing the rowid.

Sent from my iPhone

On May 31, 2012, at 10:34 AM, William Slacum <wslacum@gmail.com> wrote:

> As of now, nope!
>
> On Thu, May 31, 2012 at 7:24 AM, David Medinets
> <david.medinets@gmail.c= om> wrote:
>> I don't know why it has taken me so long to ask this basic que= stion.
>> Rows are stored in Accumulo in sorted order - high to low. Is ther= e a
>> configuration option to flip the sort? My specific use case has da= tes
>> as the record key and I want to see the oldest records first.
--047d7b15b05fba5b2d04c1563777--