kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 96696c6c377e6b2859a216c07c38a958e6d731f6150212971d2be0fbe445234e |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-12-10 13:43 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-12-10 13:44 +01:00 |
| Parents | 2d16cc18c9f6 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/querybuilder/Utils.java +8 −5
| @@ -270,11 +270,12 @@ | ||
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | - * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}. | |
| 274 | - * <p/> | |
| 275 | 273 | * Utility method to serialize user-provided values. |
| 276 | 274 | * <p/> |
| 277 | - * This method is useful in situations where there is no metadata available and the underlying CQL | |
| 275 | + * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}, it was duplicated | |
| 276 | + * to avoid having to make it public. | |
| 277 | + * <p/> | |
| 278 | + * It is useful in situations where there is no metadata available and the underlying CQL | |
| 278 | 279 | * type for the values is not known. |
| 279 | 280 | * <p/> |
| 280 | 281 | * This situation happens when a {@link com.datastax.driver.core.SimpleStatement} |
| @@ -290,7 +291,7 @@ | ||
| 290 | 291 | * @param codecRegistry The {@link CodecRegistry} to use. |
| 291 | 292 | * @return The converted values. |
| 292 | 293 | */ |
| 293 | - public static ByteBuffer[] convert(Object[] values, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) { | |
| 294 | + static ByteBuffer[] convert(Object[] values, ProtocolVersion protocolVersion, CodecRegistry codecRegistry) { | |
| 294 | 295 | ByteBuffer[] serializedValues = new ByteBuffer[values.length]; |
| 295 | 296 | for (int i = 0; i < values.length; i++) { |
| 296 | 297 | Object value = values[i]; |
| @@ -317,9 +318,11 @@ | ||
| 317 | 318 | } |
| 318 | 319 | |
| 319 | 320 | /** |
| 320 | - * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}. | |
| 321 | 321 | * Utility method to assemble different routing key components into a single {@link ByteBuffer}. |
| 322 | 322 | * Mainly intended for statements that need to generate a routing key out of their current values. |
| 323 | + * <p/> | |
| 324 | + * This method is a copy of the one declared in {@link com.datastax.driver.core.SimpleStatement}, it was duplicated | |
| 325 | + * to avoid having to make it public. | |
| 323 | 326 | * |
| 324 | 327 | * @param buffers the components of the routing key. |
| 325 | 328 | * @return A ByteBuffer containing the serialized routing key |