Skip to content

Determine Serialization/MetaData conversions #16

Description

@edwardcapriolo

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

  1. 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)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions