Re: row key for string

2011-09-29 Thread Ruby Stevenson
I see. Though I don't know enough about these util method to appreciate it, yet, but thank very much for the clarification. Ruby On Thu, Sep 29, 2011 at 12:22 PM, Jake Luciani wrote: > You need that to work with the OPP since it checks that the string is UTF-8 > Valid. > > If you are using RP o

Re: row key for string

2011-09-29 Thread Jonathan Ellis
Why not just take the md5 [as byte[], not bigint] and send it through bytesToHex then? On Thu, Sep 29, 2011 at 11:22 AM, Jake Luciani wrote: > You need that to work with the OPP since it checks that the string is UTF-8 > Valid. > > If you are using RP or BOP no need. > > On Thu, Sep 29, 2011 at 1

Re: row key for string

2011-09-29 Thread Jake Luciani
You need that to work with the OPP since it checks that the string is UTF-8 Valid. If you are using RP or BOP no need. On Thu, Sep 29, 2011 at 12:14 PM, Ruby Stevenson wrote: > btw - the original code is in brisk repo: > > > https://github.com/riptano/brisk/blob/master/src/java/src/org/apache/c

Re: row key for string

2011-09-29 Thread Ruby Stevenson
btw - the original code is in brisk repo: https://github.com/riptano/brisk/blob/master/src/java/src/org/apache/cassandra/hadoop/fs/CassandraFileSystemThriftStore.java#L657 On Thu, Sep 29, 2011 at 12:07 PM, Jonathan Ellis wrote: > Nope. That strikes me as odd, too. > On Sep 29, 2011 10:58 AM, "

Re: row key for string

2011-09-29 Thread Jonathan Ellis
Nope. That strikes me as odd, too. On Sep 29, 2011 10:58 AM, "Ruby Stevenson" wrote: > hi all > > I am reading some code related to encoding a string representing the > file path into a row key, it essentially went through a series of > transformation like this: > > String filepath = "/x/y/z"; > B

row key for string

2011-09-29 Thread Ruby Stevenson
hi all I am reading some code related to encoding a string representing the file path into a row key, it essentially went through a series of transformation like this: String filepath = "/x/y/z"; ByteBuffer bb = ByteBufferUtil.bytes(filepath); String s = FBUtilities.hashTo

Re: Deletion Based On Timestamp

2011-09-29 Thread Nick Telford
This would require a full table scan (or some kind of secondary index on timestamp built-in). You can have Cassandra discard columns after a particular time by writing them with a TTL, but this isn't quite what you're looking for. Unlike BigTable/HBase, timestamps in Cassandra aren't really someth