You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2011/03/26 20:32:11 UTC

[Cassandra Wiki] Trivial Update of "FAQ" by jeremyhanna

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: