cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Branislav Janosik -T (bjanosik - AAP3 INC at Cisco)" <>
Subject Composite partition key token
Date Wed, 08 Feb 2017 18:58:44 GMT

I would like to ask how to calculate token for composite partition key using java api?
For partition key made of one column I use cluster.getMetadata().newToken(newBuffer);
But what if my key looks like this PRIMARY KEY ((parentResourceId,timeRT), childName)?
I read that “:” is a separator but it doesn’t seem to be the case.
How can I create ByteBuffer with multiple values so that the token would be actually correct?

Thank you,
View raw message