-
Notifications
You must be signed in to change notification settings - Fork 186
Primitive columns
Flavian Alexandru edited this page May 30, 2016
·
2 revisions
This is the list of available columns and how they map to C* data types.
This also includes the newly introduced static columns in C* 2.0.6.
The type of a static column can be any of the allowed primitive Cassandra types. phantom won't let you mixin a non-primitive via implicit magic.
| phantom columns | Java/Scala type | Cassandra type |
|---|---|---|
| BlobColumn | java.nio.ByteBuffer | blog |
| BigDecimalColumn | scala.math.BigDecimal | decimal |
| BigIntColumn | scala.math.BigInt | varint |
| BooleanColumn | scala.Boolean | boolean |
| DateColumn | java.util.Date | timestamp |
| DateTimeColumn | org.joda.time.DateTime | timestamp |
| DoubleColumn | scala.Double | double |
| EnumColumn | scala.Enumeration | text |
| FloatColumn | scala.Float | float |
| IntColumn | scala.Int | int |
| InetAddressColumn | java.net.InetAddress | inet |
| LongColumn | scala.Long | long |
| StringColumn | java.lang.String | text |
| UUIDColumn | java.util.UUID | uuid |
| TimeUUIDColumn | java.util.UUID | timeuuid |
| CounterColumn | scala.Long | counter |
| StaticColumn<type> | <type> | type static |
To stay up-to-date with our latest releases and news, follow us on Twitter: @outworkers.
- Issues and questions
- Adopters
- Roadmap
- Changelog
- Tutorials
- Commercial support
- Using phantom in your project
- Primitive columns
- Optional primitive columns
- Collection columns
- Collection operators
- Automated schema generation
- Indexing columns
- Data modeling with phantom
- Querying with phantom
- Asynchronous iterators
- Batch statements
- Apache Thrift integration
- Apache ZooKeeper integration
- The phantom testkit