kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 4c17ce39e76f53d6bf21f4f0f9eeff89413a79db2144812bb2eae32a22799d5e |
|---|---|
| Author | kaicao <kaicao@users.noreply.github.com> · 2016-08-31 16:14 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-09-14 15:29 -07:00 |
| Parents | cfea46445568 |
1 file changed
modified manual/load_balancing/README.md +2 −2
| @@ -178,8 +178,8 @@ | ||
| 178 | 178 | // Set the routing key manually: serialize each partition key component to its target CQL type |
| 179 | 179 | ProtocolVersion protocolVersion = cluster.getConfiguration().getProtocolOptions().getProtocolVersionEnum(); |
| 180 | 180 | 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)); | |
| 183 | 183 | |
| 184 | 184 | session.execute(statement); |
| 185 | 185 | ``` |