cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Lebresne <>
Subject Re: Best way to format a ResultSet / Row ?
Date Tue, 19 Aug 2014 08:49:55 GMT
This kind of question belong to the java driver mailing list, not the
Cassandra one, please try to use the proper mailing list in the future.

On Tue, Aug 19, 2014 at 10:11 AM, Fabrice Larcher <
> wrote:

> But this is probably not very usefull, since you get only prints of bytes.
> You can then test the type of the column (variable 'def') in order to call
> the best suited method of 'row',

You don't have to "test" the type, you can just the deserialize method of
the column type. So in Fabrice's example,
  Object val = def.getType().deserialize(row.getBytesUnsafe(def.getName()));


View raw message