accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Billie J Rinaldi <billie.j.rina...@ugov.gov>
Subject Re: Can Sort Order Be Reversed?
Date Thu, 31 May 2012 22:16:07 GMT
On Thursday, May 31, 2012 10:52:33 AM, "Juan Moreno" <jwellington.moreno@gmail.com> wrote:
> While we are on the subject, is there a way to scan rows sorted by
> timestamp, or a particular column?

No.  The primary sort is on the row.  If you would like your data sorted by a particular feature,
create a table with that feature stored in the row.  (Good key design is much more complex
than this, but this concept is the basic starting point.)

Billie


> ---------------------------------
> 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.com > 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.

Mime
View raw message