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 ));
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 ));