also, don't execute USE in initialize; the after connect callback will do that; it would start a cql query before it knew which version to speak third, fix quoting for cassandra 1.1 finally, DateType was renamed to TimestampType, so alias the cast class
Define CassandraCQL::Collections::List, CassandraCQL::Collections::Set, and CassandraCQL::Collections::Map, which implement a ::cast class method that takes a block to cast each individual element. The return types are Array, Set, and Hash respectively.
This allows us to avoid using Array#index to map names to indices, which requires N**2 comparisons between column names to fully hydrate a row. Performance improvements are considerable for large result rows.
Ugly for reasons such as: * Consistency is hard-coded * Generally icky
Conflicts: lib/cassandra-cql/result.rb spec/result_spec.rb
Make sure #size, #length, and #count work.
Since CassandraCQL::UUID just inherits from it, we might as well support the whole family. I've already had a few times where I tried to insert SimpleUUID::UUID's and it didn't work, which confused me.
…tains a ?
…on rapid schema changes
… with currently invalid data in it