You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently on the request side objects go into maps then into json/xml then cassandra.
req.add( IntraOp.setOp("5", "6", "7")); //5
req.add( IntraOp.getOp("5", "6")); //7
But on the response side results are retuned as byte buffers.
x = (List) res.getOpsRes().get(7);
Assert.assertEquals( "7", ByteBufferUtil.string((ByteBuffer) x.get(0).get("value")) );
if we have metadata we should use it meaning, that in intravert server we can convert the bytebuffer to the true object type (string, int) and return that to the client (or maybe the byte buffer at the type)
I want to suggest request side metadata (like assume) this would allow us to do something like
req.add( IntraOp.assumeOp("keyspace1", "columnfamily1", "x", int ));
Also thing we should be able to assume ranges for wide rows
req.add( IntraOp.assumeOp("keyspace1", "columnfamily1", "x", "y", int ));
The text was updated successfully, but these errors were encountered:
Agreed. With the open back channel via Gossiper listener implementation, we will always have up-to-date meta data for each and every schema change that comes into the system.
We can and should leverage this to perform a substantial amount of client side validation (particularly since we are by-passing ThriftValidation via not going through thrift transport or the "JDBC" stuff on the CQL transport) as well as automatic conversion on return types.
I want to emphasize that doing validation client side is just a massive win all around win.
Currently on the request side objects go into maps then into json/xml then cassandra.
req.add( IntraOp.setOp("5", "6", "7")); //5
req.add( IntraOp.getOp("5", "6")); //7
But on the response side results are retuned as byte buffers.
x = (List) res.getOpsRes().get(7);
Assert.assertEquals( "7", ByteBufferUtil.string((ByteBuffer) x.get(0).get("value")) );
if we have metadata we should use it meaning, that in intravert server we can convert the bytebuffer to the true object type (string, int) and return that to the client (or maybe the byte buffer at the type)
I want to suggest request side metadata (like assume) this would allow us to do something like
req.add( IntraOp.assumeOp("keyspace1", "columnfamily1", "x", int ));
Also thing we should be able to assume ranges for wide rows
req.add( IntraOp.assumeOp("keyspace1", "columnfamily1", "x", "y", int ));
The text was updated successfully, but these errors were encountered: