Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Handle composite row keys in a nice way #16

Open
rzvoncek opened this issue Mar 26, 2015 · 0 comments
Open

Handle composite row keys in a nice way #16

rzvoncek opened this issue Mar 26, 2015 · 0 comments

Comments

@rzvoncek
Copy link
Contributor

Composite row keys currently have to be built like this:
CQLRecord.create(
CompositeType.build(
ByteBufferUtil.bytes("metric"),
ByteBufferUtil.bytes("country"),
ByteBufferUtil.bytes(1234L)), // this is the row key
Lists.newArrayList("metric2", "country2", 1234L, 1.0d, "uri") // this is a column
);

This is not very pretty (and definitely not quite intuitive) from the user point of view and can be improved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant