hmsonline/storm-cassandra — pull request #27 by strongh (2013-09-27 01:08:35+00:00)
Title: Consistently stringify key components in map state

This fixes an edge case of key handling in `CassandraMapState.multiGet`, when a component of a key isn't a string. On write the row key components are stringified, and on read the components are again correctly stringified for querying from C*, but [soon after](https://github.com/hmsonline/storm-cassandra/blob/master/src/main/java/com/hmsonline/storm/cassandra/trident/CassandraMapState.java#L238) when pulling the queried values from the result map`multiGet` erroneously uses the un-stringified components. The unit tests passed because they only have keys whose sole component is a string.

I split the `toKeyNames` logic into a reusable method `toKeyStrings` which returns an array list instead of a `Component`.