cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Trivial Update of "FAQ" by jeremyhanna
Date Sat, 26 Mar 2011 19:32:11 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "FAQ" page has been changed by jeremyhanna.
The comment on this change is: unlinked SlicePredicate with a ! character.
http://wiki.apache.org/cassandra/FAQ?action=diff&rev1=108&rev2=109

--------------------------------------------------

              return buffer;
          }
  }}}
- Further, it is often useful to create a TimeUUID object from some time other than the present:
for example, to use as the lower bound in a SlicePredicate to retrieve all columns whose TimeUUID
comes after time ''X''. Most libraries don't provide this functionality, probably because
this breaks the "Universal" part of UUID: '''this should give you pause'''! Never assume such
a UUID is unique: use it only as a marker for a specific time.
+ Further, it is often useful to create a TimeUUID object from some time other than the present:
for example, to use as the lower bound in a !SlicePredicate to retrieve all columns whose
TimeUUID comes after time ''X''. Most libraries don't provide this functionality, probably
because this breaks the "Universal" part of UUID: '''this should give you pause'''! Never
assume such a UUID is unique: use it only as a marker for a specific time.
  
  With those disclaimers out of the way, if you feel a need to create a TimeUUID based on
a specific date, here is some code that will work:
  

Mime
View raw message