abstract out utility method
Merge pull request #6 from druid-io/Random-partitioning

Add Utility method for converting a row to group key