cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Jongsma <>
Subject Re: Storing values of mixed types in a list
Date Tue, 24 Jun 2014 13:18:40 GMT
Use a ByteBuffer value type with your own serialization (we use protobuf
for complex value structures)
On Jun 24, 2014 5:30 AM, "Tuukka Mustonen" <>

> Hello,
> I need to store a list of mixed types in Cassandra. The list may contain
> numbers, strings and booleans. So I would need something like list<?>.
> Is this possible in Cassandra and if not, what workaround would you
> suggest for storing a list of mixed type items? I sketched a few (using a
> list per type, using list of user types in Cassandra 2.1, etc.), but I get
> a bad feeling about each.
> Couldn't find an "exact" answer to this through searches...
> Regards,
> Tuukka
> P.S. I first asked this at SO before realizing the traffic there is very
> low:

View raw message