simplereach/helenus — pull request #23 by ctavan (2012-04-09 22:39:27+00:00)
Title: Add support for Int32Type and DecimalType (not quite perfect yet)

- DecimalType are java.math.BigDecimal which are encoded into javascript
doubles for now
- IntegerType are java.math.BigInteger which are encoded into javascipt
integers for now (might loose precision when doing math with them).

If you create a field of type `int` in CQL it will use `Int32Type` internally. This patch adds the missing marshaller. It also adds a placeholder for the missing `DecimalType`.

With this patch there should at least be some marshaller for all existing cassandra datatypes, although the marshallers for `LongType`, `IntegerType` and `DecimalType` may not be perfect yet.

Datatypes are described in the docs:

- http://www.datastax.com/docs/1.0/references/cql/index#cql-data-types
- http://www.datastax.com/docs/1.0/ddl/column_family#about-data-types-comparators-and-validators