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 <jbel...@gmail.com> wrote: > Nope. That strikes me as odd, too. > On Sep 29, 2011 10:58 AM, "Ruby Stevenson" <ruby...@gmail.com> 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"; >> ByteBuffer bb = ByteBufferUtil.bytes(filepath); >> String s = FBUtilities.hashToBigInteger(bb).toString(16); >> return ByteBufferUtil.bytes(s); >> >> why hashToBigInteger and then hex string? is this a convention/idiom >> of generating row key this way? >> >> thanks >> >> Ruby >