kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 584976b4bce4cf54c13ca45657c0e6b0d0eef7cdcb9c48b572a4d4bff6c4455d |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-26 11:28 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-01-04 18:04 +01:00 |
| Parents | 9ef4091fabd4 |
9 files changed
modified driver-core/src/main/java/com/datastax/driver/core/CodecRegistry.java +2 −2
| @@ -80,7 +80,7 @@ | ||
| 80 | 80 | * <li>all driver types that implement {@link GettableByIndexData}, {@link GettableByNameData}, |
| 81 | 81 | * {@link SettableByIndexData} and/or {@link SettableByNameData}. Namely: {@link Row}, |
| 82 | 82 | * {@link BoundStatement}, {@link UDTValue} and {@link TupleValue};</li> |
| 83 | - * <li>{@link SimpleStatement(String, Object...) simple statements};</li> | |
| 83 | + * <li>{@link SimpleStatement#SimpleStatement(String, Object...) simple statements};</li> | |
| 84 | 84 | * <li>statements created with the {@link com.datastax.driver.core.querybuilder.QueryBuilder Query builder}.</li> |
| 85 | 85 | * </ul> |
| 86 | 86 | * <p/> |
| @@ -378,7 +378,7 @@ | ||
| 378 | 378 | * Furthermore, this method returns the first matching codec, regardless of its accepted CQL type. |
| 379 | 379 | * It should be reserved for situations where the target CQL type is not available or unknown. |
| 380 | 380 | * In the Java driver, this happens mainly when serializing a value in a |
| 381 | - * {@link SimpleStatement(String, Object...) SimpleStatement} or in the | |
| 381 | + * {@link SimpleStatement#SimpleStatement(String, Object...) SimpleStatement} or in the | |
| 382 | 382 | * {@link com.datastax.driver.core.querybuilder.QueryBuilder}, where no CQL type information is available. |
| 383 | 383 | * <p/> |
| 384 | 384 | * Codecs returned by this method are <em>NOT</em> cached (see the {@link CodecRegistry top-level documentation} |
modified driver-core/src/main/java/com/datastax/driver/core/ParseUtils.java +4 −8
| @@ -266,8 +266,7 @@ | ||
| 266 | 266 | * to parse date strings).. |
| 267 | 267 | * |
| 268 | 268 | * @throws ParseException If the given string is not a valid ISO-8601 date. |
| 269 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a> | |
| 270 | - * section of CQL specification. | |
| 269 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a> | |
| 271 | 270 | */ |
| 272 | 271 | public static Date parseDate(String str) throws ParseException { |
| 273 | 272 | SimpleDateFormat parser = new SimpleDateFormat(); |
| @@ -301,8 +300,7 @@ | ||
| 301 | 300 | * to parse date strings).. |
| 302 | 301 | * |
| 303 | 302 | * @throws ParseException If the given string cannot be parsed with the given pattern. |
| 304 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a> | |
| 305 | - * section of CQL specification. | |
| 303 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a> | |
| 306 | 304 | */ |
| 307 | 305 | public static Date parseDate(String str, String pattern) throws ParseException { |
| 308 | 306 | SimpleDateFormat parser = new SimpleDateFormat(); |
| @@ -335,8 +333,7 @@ | ||
| 335 | 333 | * @param str The string to parse. |
| 336 | 334 | * @return A long value representing the number of nanoseconds since midnight. |
| 337 | 335 | * @throws ParseException if the string cannot be parsed. |
| 338 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">Working with time</a> | |
| 339 | - * section of CQL specification. | |
| 336 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">'Working with time' section of CQL specification</a> | |
| 340 | 337 | */ |
| 341 | 338 | public static long parseTime(String str) throws ParseException { |
| 342 | 339 | String nanos_s; |
| @@ -403,8 +400,7 @@ | ||
| 403 | 400 | * |
| 404 | 401 | * @param value A long value representing the number of nanoseconds since midnight. |
| 405 | 402 | * @return The formatted value. |
| 406 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">Working with time</a> | |
| 407 | - * section of CQL specification. | |
| 403 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtime">'Working with time' section of CQL specification</a> | |
| 408 | 404 | */ |
| 409 | 405 | public static String formatTime(long value) { |
| 410 | 406 | int nano = (int) (value % 1000000000); |
modified driver-core/src/main/java/com/datastax/driver/core/Session.java +3 −3
| @@ -115,7 +115,7 @@ | ||
| 115 | 115 | * |
| 116 | 116 | * @param query the CQL query to execute. |
| 117 | 117 | * @param values values required for the execution of {@code query}. See |
| 118 | - * {@link SimpleStatement(String, Object...)} for more detail. | |
| 118 | + * {@link SimpleStatement#SimpleStatement(String, Object...)} for more detail. | |
| 119 | 119 | * @return the result of the query. That result will never be null but can |
| 120 | 120 | * be empty (and will be for any non SELECT query). |
| 121 | 121 | * @throws NoHostAvailableException if no host in the cluster can be |
| @@ -141,7 +141,7 @@ | ||
| 141 | 141 | * guarantee that if the request is invalid, an exception will be thrown |
| 142 | 142 | * by this method. |
| 143 | 143 | * |
| 144 | - * @param statement the CQL query to execute (that can be any {@code Statement}). | |
| 144 | + * @param statement the CQL query to execute (that can be any {@link Statement}). | |
| 145 | 145 | * @return the result of the query. That result will never be null but can |
| 146 | 146 | * be empty (and will be for any non SELECT query). |
| 147 | 147 | * @throws NoHostAvailableException if no host in the cluster can be |
| @@ -175,7 +175,7 @@ | ||
| 175 | 175 | * |
| 176 | 176 | * @param query the CQL query to execute. |
| 177 | 177 | * @param values values required for the execution of {@code query}. See |
| 178 | - * {@link SimpleStatement(String, Object...)} for more detail. | |
| 178 | + * {@link SimpleStatement#SimpleStatement(String, Object...)} for more detail. | |
| 179 | 179 | * @return a future on the result of the query. |
| 180 | 180 | * @throws UnsupportedFeatureException if version 1 of the protocol |
| 181 | 181 | * is in use (i.e. if you've force version 1 through {@link Cluster.Builder#withProtocolVersion} |
modified driver-core/src/main/java/com/datastax/driver/core/policies/IdempotenceAwareRetryPolicy.java +1 −1
| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | /** |
| 22 | 22 | * A retry policy that avoids retrying non-idempotent statements. |
| 23 | 23 | * <p/> |
| 24 | - * In case of write timeouts or unexpected errors, this policy will always return {@link RetryDecision#rethrow()} | |
| 24 | + * In case of write timeouts or unexpected errors, this policy will always return {@link com.datastax.driver.core.policies.RetryPolicy.RetryDecision#rethrow()} | |
| 25 | 25 | * if the statement is deemed non-idempotent (see {@link #isIdempotent(Statement)}). |
| 26 | 26 | * <p/> |
| 27 | 27 | * For all other cases, this policy delegates the decision to the child policy. |
modified driver-core/src/main/java/com/datastax/driver/core/schemabuilder/TableOptions.java +1 −1
| @@ -806,7 +806,7 @@ | ||
| 806 | 806 | */ |
| 807 | 807 | public static class DateTieredCompactionStrategyOptions extends CompactionOptions<DateTieredCompactionStrategyOptions> { |
| 808 | 808 | |
| 809 | - enum TimeStampResolution {MICROSECONDS, MILLISECONDS} | |
| 809 | + public enum TimeStampResolution {MICROSECONDS, MILLISECONDS} | |
| 810 | 810 | |
| 811 | 811 | private Optional<Integer> baseTimeSeconds = Optional.absent(); |
| 812 | 812 |
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/InstantCodec.java +1 −2
| @@ -45,8 +45,7 @@ | ||
| 45 | 45 | * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong> |
| 46 | 46 | * |
| 47 | 47 | * @see ZonedDateTimeCodec |
| 48 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a> | |
| 49 | - * section of CQL specification. | |
| 48 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a> | |
| 50 | 49 | */ |
| 51 | 50 | public class InstantCodec extends TypeCodec<Instant> { |
| 52 | 51 |
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/ZonedDateTimeCodec.java +1 −2
| @@ -51,8 +51,7 @@ | ||
| 51 | 51 | * timestamps using an ISO-8601 format that includes milliseconds. |
| 52 | 52 | * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong> |
| 53 | 53 | * |
| 54 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a> | |
| 55 | - * section of CQL specification. | |
| 54 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a> | |
| 56 | 55 | */ |
| 57 | 56 | public class ZonedDateTimeCodec extends TypeCodec.AbstractTupleCodec<ZonedDateTime> { |
| 58 | 57 |
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/joda/DateTimeCodec.java +1 −2
| @@ -50,8 +50,7 @@ | ||
| 50 | 50 | * timestamps using an ISO-8601 format that includes nanoseconds. |
| 51 | 51 | * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong> |
| 52 | 52 | * |
| 53 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a> | |
| 54 | - * section of CQL specification. | |
| 53 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a> | |
| 55 | 54 | */ |
| 56 | 55 | public class DateTimeCodec extends TypeCodec.AbstractTupleCodec<DateTime> { |
| 57 | 56 |
modified driver-extras/src/main/java/com/datastax/driver/extras/codecs/joda/InstantCodec.java +1 −2
| @@ -43,8 +43,7 @@ | ||
| 43 | 43 | * <strong>This format is incompatible with Cassandra versions < 2.0.9.</strong> |
| 44 | 44 | * |
| 45 | 45 | * @see DateTimeCodec |
| 46 | - * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">Working with timestamps</a> | |
| 47 | - * section of CQL specification. | |
| 46 | + * @see <a href="https://cassandra.apache.org/doc/cql3/CQL-2.2.html#usingtimestamps">'Working with timestamps' section of CQL specification</a> | |
| 48 | 47 | */ |
| 49 | 48 | public class InstantCodec extends TypeCodec<Instant> { |
| 50 | 49 |