cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cassandra-dbapi2.apache-extras....@codespot.com
Subject [cassandra-dbapi2] push by pcannon - allow override of SchemaDecoder... on 2011-10-07 23:11 GMT
Date Fri, 07 Oct 2011 23:24:55 GMT
Revision: d31c412df1a6
Author:   paul cannon <paul@riptano.com>
Date:     Fri Oct  7 16:06:33 2011
Log:      allow override of SchemaDecoder

When an execute() call is made, there will likely be cases where the
caller knows better than the driver how best to deserialize data- I
guess this is the point to the ASSUME command in cassandra-cli and which
has been requested for cqlsh.

The simplest way to allow caller-controlled deserialization, it seems to
me, is to allow passing in a SchemaDecoder-like class as an optional
parameter to execute(). The custom decoder will be used until a new
query is made.

This adds that.

http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=d31c412df1a6



Mime
View raw message