Elffuss BraidHub

kikocis/java-driver public

Fix typo in custom codecs manual

When following document to assign routing key to SimpleStatement found
issue DateType.cint() doesn't has serialize method, instead should use
TypeCodec.cint
Changeset4c17ce39e76f53d6bf21f4f0f9eeff89413a79db2144812bb2eae32a22799d5e
Authorkaicao <kaicao@users.noreply.github.com> · 2016-08-31 16:14 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2016-09-14 15:29 -07:00
Parentscfea46445568

Browse the files at this changeset

1 file changed

modified manual/load_balancing/README.md +2 −2
@@ -178,8 +178,8 @@
178178 // Set the routing key manually: serialize each partition key component to its target CQL type
179179 ProtocolVersion protocolVersion = cluster.getConfiguration().getProtocolOptions().getProtocolVersionEnum();
180180 statement.setRoutingKey(
181- DataType.cint().serialize(1, protocolVersion),
182- DataType.cint().serialize(2016, protocolVersion));
181+ TypeCodec.cint().serialize(1, protocolVersion),
182+ TypeCodec.cint().serialize(2016, protocolVersion));
183183
184184 session.execute(statement);
185185 ```